[Pythonmac-SIG] How to install packages?

pythonmac at gisborne.emailuser.net pythonmac at gisborne.emailuser.net
Wed Mar 24 14:18:12 EST 2004


Panther. Latest update.

Installed MacPython extensions for Panther.

Installed wxPython for Panther.

Go to /Applications/wxPythonOSX-2.4.1.2.

Open Demos. Double-click on arbitrary demo. See this:

$ "/usr/local/bin/pythonw"   
"/Applications/wxPythonOSX-2.4.1.2/demo/wxButton.pyc"  && echo Exit  
status: $? && exit 1
Traceback (most recent call last):
   File "/Applications/wxPythonOSX-2.4.1.2/demo/wxButton.py", line 2, in  
?
ImportError: No module named wxPython.wx

Wonder about how to install packages on OS X.

Search archives. Find assertion that packages go in

/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
site-packages

Find followup posting in February by Bob saying that:

site-packages itself is a  symlink to /Library/Python/2.3

Become further confused, because this is quite clearly *not* the case  
on my system -- the two folders have utterly disparate content.

Try copying wxPython folder from /Library/Python/2.3 to  
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
site-packages

Try to run demo again. Same result.

Become utterly confused, decide to ask mailing list. Aim to put the  
answer on the FAQ, where it clearly belongs.




More information about the Pythonmac-SIG mailing list