=== Environment ===
I installed PyDEV extensions 1.3.13 to Eclipse 3.3.1.1 on my Mac. Its OS was clean-installed recently from Tiger to Leopard. And I have copied ~/Document/workspace from old HDD to new HDD.
=== Problem ===
I have some python projects which were developed on the previous Tiger environment. They were working as I expected with PyDEV extension. However after installing new OS X Leopard, Code Analysis outputs many errors to my python scripts.
For example,
import time
=> Unresolved import: time
class MyClass(object)
=> Undefined variable: object
foo = None
=> Undefined variable: None
of course these lines run correctly on my Mac (python 2.5.1).
import sys
does not output an error. But sys.stderr and sys.exit are said that "Undefined".
That means that your builtins are not currently correctly gotten. Please check:
- do you have something in your error log?
- do you have some firewall enabled that may be blocking communication? (the builtins are gotten by spawning a python shell and communicating with it through sockets to get those tokens)
- is your interpreter correctly configured?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you very much for your quick reply. It works now.
>- do you have something in your error log?
I found four same errors which was
The interpreter location found does not exist. /Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
This seems the path defined in the previous OS. The default version of python is 2.3 in OS X Tiger so I installed 2.5 under /Library . I changed this to
from the preference menu. This is the default path in OS X Leopard. I do not know which file contains this path info but new OS X Leopard users are recommended to check this item if one has same problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello PyDEV users
=== Environment ===
I installed PyDEV extensions 1.3.13 to Eclipse 3.3.1.1 on my Mac. Its OS was clean-installed recently from Tiger to Leopard. And I have copied ~/Document/workspace from old HDD to new HDD.
=== Problem ===
I have some python projects which were developed on the previous Tiger environment. They were working as I expected with PyDEV extension. However after installing new OS X Leopard, Code Analysis outputs many errors to my python scripts.
For example,
import time
=> Unresolved import: time
class MyClass(object)
=> Undefined variable: object
foo = None
=> Undefined variable: None
of course these lines run correctly on my Mac (python 2.5.1).
import sys
does not output an error. But sys.stderr and sys.exit are said that "Undefined".
I tried
- Reinstalling PyDEV
- Reinstalling Eclipse
- Removing ~/Documents/workspace/.metadata/.plugins/org.python.pydev*
but I still get the above errors.
Anyone know how to remove this problem? Any suggestion?
I am not sure if this problem was caused by Leopard.
That means that your builtins are not currently correctly gotten. Please check:
- do you have something in your error log?
- do you have some firewall enabled that may be blocking communication? (the builtins are gotten by spawning a python shell and communicating with it through sockets to get those tokens)
- is your interpreter correctly configured?
Hello Fabio
Thank you very much for your quick reply. It works now.
>- do you have something in your error log?
I found four same errors which was
The interpreter location found does not exist. /Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
This seems the path defined in the previous OS. The default version of python is 2.3 in OS X Tiger so I installed 2.5 under /Library . I changed this to
/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
from the preference menu. This is the default path in OS X Leopard. I do not know which file contains this path info but new OS X Leopard users are recommended to check this item if one has same problem.