-
Notifications
You must be signed in to change notification settings - Fork 66
ImportError: No module named pyexpat #5
Comments
Operating System? |
Linux. Operating System? Reply to this email directly or view it on GitHub: |
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: |
same error here: import sys
print sys.version
2.6.6 (r266:84292, Jun 16 2011, 22:27:44)
[GCC 4.4.5] |
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 :) |
Ubuntu 11.10
Sublime console:
|
Right, solved it with mavimo instructions and installing python:
What should happen when selecting Status in the debugger menu? |
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. |
Sweet! thanks a lot. |
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. |
Yes. I just saw in the forums it enough to add a symlink to avoid that. I'll update the docs. |
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 |
I'm having the same problem as helixdev |
Have you guys tried the new instructions re: python 2.6 and pyexpat in the README? In the Troubleshooting section. |
It helps. Thanks a lot! |
The readme text fixes this, one question though, there is a python26.zip file in the directory by default. What is that for? |
i guess its being used from sublime itself... |
I'm still having initiall issue. On bash
On Sublime >>> import sys
>>> sys.path.append("/usr/lib/python2.7/lib-dynload/") Can it only run with python 2.6? |
@jotson which README are you exactly referring to? |
This one here: https://github.com/Kindari/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/ |
I'm getting this error in the console when the xdebug connection is stablished:
The text was updated successfully, but these errors were encountered: