Comments (21)
Operating System?
from sublimexdebug.
Linux.
------Mensaje original------
De: William Cahill-Manley
Para: Arturo Linares Goenaga
Asunto: Re: [SublimeXdebug] ImportError: No module named pyexpat (#5)
Enviado: 22 mar, 2012 15:33
Operating System?
Reply to this email directly or view it on GitHub:
#5 (comment)
from sublimexdebug.
Looks like a similar problem is in this thread. I will keep investigating. Could you provide the following?
Distribution / version
python --version
in sublime console:
import sys
print sys.version
from sublimexdebug.
same error here:
import sys
print sys.version
2.6.6 (r266:84292, Jun 16 2011, 22:27:44)
[GCC 4.4.5]
from sublimexdebug.
Ok, I find a solution. On ubuntu 10.10 there are some python libraries on:
/usr/lib/python2.6/lib-dynload/
so, open console and write:
import sys
sys.path.append("/usr/lib/python2.6/lib-dynload/")
now problem desappair :)
from sublimexdebug.
Ubuntu 11.10
$ python --version
Python 2.7.2+
Sublime console:
>>> import sys
>>> print sys.version
2.6.6 (r266:84292, Jun 16 2011, 22:27:44)
[GCC 4.4.5]
from sublimexdebug.
Right, solved it with mavimo instructions and installing python:
$ sudo apt-get install python2.6
What should happen when selecting Status in the debugger menu?
from sublimexdebug.
I just fixed an issue in that, so repull before trying again, but it tells you what status the debugger is in. It places the message in the status bar, it will only be there for about 5 seconds. usually in the form of "ok: starting" or "ok: stopping"
Glad your issue was resolved.
from sublimexdebug.
Sweet! thanks a lot.
from sublimexdebug.
If you completely restart ST2, do you have to append that path to sys.path again? If so I can see that being a pain.
from sublimexdebug.
Yes. I just saw in the forums it enough to add a symlink to avoid that. I'll update the docs.
from sublimexdebug.
I'm having the same problem, unfortunatelly after the path append I get another error:
ImportError: /usr/lib/python2.7/lib-dynload/pyexpat.so: undefined symbol: PyCapsule_New
I've tried searching for a solution but to no avail.
Ubuntu 12.04
$ python --version Python 2.7.3
>>> import sys >>> print sys.version 2.6.6 (r266:84292, Jun 16 2011, 22:35:51) [GCC 4.4.5]
Any help would be appreciated. Thanks
from sublimexdebug.
I'm having the same problem as helixdev
from sublimexdebug.
Have you guys tried the new instructions re: python 2.6 and pyexpat in the README? In the Troubleshooting section.
from sublimexdebug.
It helps. Thanks a lot!
from sublimexdebug.
The readme text fixes this, one question though, there is a python26.zip file in the directory by default. What is that for? /usr/lib/sublime-text-2/lib/python2/python26.zip
from sublimexdebug.
i guess its being used from sublime itself...
from sublimexdebug.
I'm still having initiall issue.
On bash
$ pwd
> /usr/lib/python2.7/lib-dynload
$ ls *expat*
> pyexpat.so
On Sublime
>>> import sys
>>> sys.path.append("/usr/lib/python2.7/lib-dynload/")
Can it only run with python 2.6?
from sublimexdebug.
@jotson which README are you exactly referring to?
from sublimexdebug.
This one here: https://github.com/Kindari/SublimeXdebug
from sublimexdebug.
Ok thanks.
I've found this post so useful: https://blog.bitbadger.net/index.php/2012/11/22/error-importing-pyexpat-in-sublime-on-linux/
from sublimexdebug.
Related Issues (20)
- Nothing viewed (No XDebug Context and Stack) HOT 8
- Conditional breakpoints
- Does not work beyond defined url
- Sublime Text 3 HOT 4
- Hangs on CLOSE_WAIT
- How to close the xdebug panel? HOT 1
- Debugging not working on AJAX requests HOT 1
- Show PHP object complete
- Sublime Text 3 HOT 1
- Start and Stop debugging does not launch browser if initiated via Menu
- Horizontal scroll position
- Not showing break line HOT 1
- Freature request: Watch expressions HOT 5
- Windows path with space character HOT 2
- arrays , objects get turnacated if nested HOT 5
- Not working... abandonware? HOT 6
- string only display 1024byte in the debug view HOT 1
- Improve UI HOT 1
- browser
- what php version that this package uses, and how to change php version?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublimexdebug.