as the interpreter. When I clicked "OK", an error window appeared that contained the following message:
It seems that the Python /Lib folder (which contains the standard library) was not found/selected during the install process or the stdlib does not contain the required .py files (i.e.: only has .pyc files).
This folder (which contains files such as threading.py and traceback.py) is required for PyDev to function properly (and it must contain the actual source files, not only .pyc files).
Note that if this is a virtualenv install, the /Lib folder from the base install needs to be selected (unlike the site-packages which is optional).
Clicking on "OK" in this window just brings it back. I tried clicking "OK" repeatedly, hoping that it would try a finite number of times and then give up, allowing me to specify the directory by hand, but this didn't work. In the end, I had to use xkill to kill this window, which terminated eclipse as well of course.
First point: am I right in thinking that this is a bug in PyDev? Even if the Jython installation is odd in some way, at least there should be a way past this point so that I can tell it where to look for the required files if it can't find them on its own?
Second point, the required files do seem to me to be present:
I think PyDev could be improved to handle the case where your code is not found in sys.path after starting up Jython… Please enter a bug report for that.
As for your current workaround, edit org.python.pydev\PySrc\interpreterInfo.py and after the path_used = sys.path, do path_used.append('/usr/share/jython/Lib') and try to add the interpreter again (it should work this time).
Cheers,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this doesn't work. downgrading to 1.6.5 does.
when opening the workspace that has been used with this version of pydev, the latest version of pydev can be used..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OS: openSUSE 11.4
Eclipse version: Helios SR1
PyDev version 2.2.0
Jython version: 2.2a0
I tried to add a jython interpreter, using
as the interpreter. When I clicked "OK", an error window appeared that contained the following message:
This folder (which contains files such as threading.py and traceback.py) is required for PyDev to function properly (and it must contain the actual source files, not only .pyc files).
Note that if this is a virtualenv install, the /Lib folder from the base install needs to be selected (unlike the site-packages which is optional).
Clicking on "OK" in this window just brings it back. I tried clicking "OK" repeatedly, hoping that it would try a finite number of times and then give up, allowing me to specify the directory by hand, but this didn't work. In the end, I had to use xkill to kill this window, which terminated eclipse as well of course.
First point: am I right in thinking that this is a bug in PyDev? Even if the Jython installation is odd in some way, at least there should be a way past this point so that I can tell it where to look for the required files if it can't find them on its own?
Second point, the required files do seem to me to be present:
I think PyDev could be improved to handle the case where your code is not found in sys.path after starting up Jython… Please enter a bug report for that.
As for your current workaround, edit org.python.pydev\PySrc\interpreterInfo.py and after the path_used = sys.path, do path_used.append('/usr/share/jython/Lib') and try to add the interpreter again (it should work this time).
Cheers,
Fabio
downgrade to 1.6.5.
BTW when opening a workspace that has been used with this version, the latest version of pydev can be used..
this doesn't work. downgrading to 1.6.5 does.
when opening the workspace that has been used with this version of pydev, the latest version of pydev can be used..