Code Monkey home page Code Monkey logo

Comments (21)

Kindari avatar Kindari commented on July 16, 2024

Operating System?

from sublimexdebug.

arturolinares avatar arturolinares commented on July 16, 2024

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.

Kindari avatar Kindari commented on July 16, 2024

clemos/haxe-sublime-bundle#17

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.

mavimo avatar mavimo commented on July 16, 2024

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.

mavimo avatar mavimo commented on July 16, 2024

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.

arturolinares avatar arturolinares commented on July 16, 2024

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.

arturolinares avatar arturolinares commented on July 16, 2024

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.

Kindari avatar Kindari commented on July 16, 2024

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.

arturolinares avatar arturolinares commented on July 16, 2024

Sweet! thanks a lot.

from sublimexdebug.

Kindari avatar Kindari commented on July 16, 2024

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.

arturolinares avatar arturolinares commented on July 16, 2024

Yes. I just saw in the forums it enough to add a symlink to avoid that. I'll update the docs.

from sublimexdebug.

bogdanbartis avatar bogdanbartis commented on July 16, 2024

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.

FedorKononov avatar FedorKononov commented on July 16, 2024

I'm having the same problem as helixdev

from sublimexdebug.

jotson avatar jotson commented on July 16, 2024

Have you guys tried the new instructions re: python 2.6 and pyexpat in the README? In the Troubleshooting section.

from sublimexdebug.

FedorKononov avatar FedorKononov commented on July 16, 2024

It helps. Thanks a lot!

from sublimexdebug.

ElijahLynn avatar ElijahLynn commented on July 16, 2024

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.

themroc5 avatar themroc5 commented on July 16, 2024

i guess its being used from sublime itself...

from sublimexdebug.

temple avatar temple commented on July 16, 2024

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.

temple avatar temple commented on July 16, 2024

@jotson which README are you exactly referring to?

from sublimexdebug.

jotson avatar jotson commented on July 16, 2024

This one here: https://github.com/Kindari/SublimeXdebug

from sublimexdebug.

temple avatar temple commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.