Discuss any topics about the editor here


Postby mmuratet » Wed Oct 02, 2013 3:23 pm

My python experience is minimal. I am trying to implement a script that depends on pycurl and have come up against a fundamental problem. My script in editra:

import sys
import pycurl

print('Testing %s' % pycurl.version)

and the result in the shelf:

>>> python -u
Traceback (most recent call last):
File "", line 2, in <module>
import pycurl
ImportError: No module named pycurl
>>> Exit Code: 1

Yet from the command line:

Michaels-MacBook-Pro:Desktop mmuratet$ python
Testing libcurl/7.30.0 OpenSSL/0.9.7l zlib/1.2.7

I am at a loss to understand how this can be. It's got to be the same call to python, doesn't it? I don't see anything in the menus or documentation, can someone give me a hint?


Limited User
Posts: 1
Joined: Wed Oct 02, 2013 3:12 pm

Re: Verifying PYTHONPATH

Postby cody » Tue Oct 15, 2013 1:23 pm

Sorry for the late reply have been away for awhile and the site has been getting hit with lots of spambots so the moderation queue was a bit to work through.

If you are using a binary version of editra ( Then it has its own builtin bundled python. Thus it can only recognize the modules it has built in to its environment which is different from your system environment. If you are a python developer I highly suggest installing Editra from source into your python installation ( install). This will give you 100% completion support and pyshell support to your installed python environment.
User avatar
Site Admin
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest