[Pythonmac-SIG] leopard, cannot locate pyobjc modules

Ronald Oussoren ronaldoussoren at mac.com
Tue Nov 27 06:43:26 CET 2007


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  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20071127/c870fe2c/attachment.bin 


More information about the Pythonmac-SIG mailing list