On 26 Nov, 2007, at 21:02, Anmo Kim wrote:
Hi all, I recently upgraded my os from tiger to leopard, and got some problems in using pyobjc there. I get the following error when i try "python setup.py install" for any Cocoa application on the example folder.(i.e. from /Developer/Examples/Python/PyObjC/Cocoa/AppKit/ CurrencyConverter)[hs10kim4 CurrencyConverter]$ python setup.py install Traceback (most recent call last): File "setup.py", line 8, in <module> import py2app ImportError: No module named py2app I got into problem with other modules, such as objc and foundation. I might have screwed up something when i upgrade my os. I suppose there must be a folder for these lost modules. For example, I can locate "numpy" folder under"/Library/FrameWorks/Python.framework/Versions/2.5/lib/python2.5/ site-packages",and if i get rid of it, i cannot import numpy anymore. Could somebody help me to install those lost modules? I would really appreciate all this help.
You have a python interpreter in /Library/Frameworks as well. The developer examples rely on the version of PyObjC that's in Apple's install of python (/usr/bin/python).
You can remove /Library/Frameworks/Python.framework, but you will have to reinstall all site-packages that you use. Alternatively you can change your shell profile and remove /Library/Frameworks/ Python.framework/... from the shell variable PATH.
Ronald Ronald
Regards, Anmo _______________________________________________ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
