Aptana Studio 3 configured for Jython 2.2.1 instead of the latest version, due to another dependency.
The following code:
if __name__ == '__main__':
produces the result:
Problems tab lists: "Undefined variable from import: registry"
When I run this from native Jython 2.2.1 I get the python.path expected.
I'm new to Eclipse/PyDev in Aptana. Does anyone know why I can't resolve registry, even though it shows in the dir() statement?
My bad. Interpreter configured for python instead of Jython. Working fine now.
I have the same issue with PyDev (not related to Jython). I have import lxml.etree and I get "Undefined variable from import: tostring" I'm using Python 2.7 using:
Window | Preferences | PyDev | Interpreter - Python
Libraries \System libs
Project Properties DyDev - Interpreter/Grammer Python Grammar Version 2.7
I fixed it though by adding in etree.py as an external lib to the project, forcing compilation, and then removing it.