wxPython on Panther

October 27, 2003 on 8:46 pm | In Python | Add a comment

wxPython can be installed on Mac OS X 10.3 (Panther) after installing MacPython.

However, the installation of wxPython will fail. After looking around and not finding any solution on the web, I found the following cause.

The MacPython for Mac OS X 10.3 installer does not include the Python core, but instead creates the framework directories required to Python work correctly. It does this by creating directories under /System/Library/Frameworks/Python.framework. Which is good.

The wxPython installer, on the other hand, attempts to install the wx and wxPython modules in /Library/Frameworks/Python.framework. Which is not good.

The solution is to manually move the files from /Library/Frameworks/Python.framework to /System/Library/Frameworks/Python.framework when the installation fails. Note that the modules should go in the site-packages directory somewhere within the latter.

For the wxPython demo app to run, you must edit RunDemo.app to point to the correct location of Python. Here is what needs to be done:

$ cd /Applications/wxPythonOSX-2.4.2.4/RunDemo.app/Contents/MacOS
$ vim RunDemo (and change the first line to #!/usr/bin/python)
$ ln -sf /usr/bin/python Python

Repeat for the other demo apps.

Note: You may need root privileges to edit these files.

Related Posts:

GPGMail 1.0 for Panther

October 26, 2003 on 11:11 am | In Apple | Add a comment

“GPGMail 1.0″:http://www.sente.ch/software/GPGMail/English.lproj/GPGMail.html is available for Panther and Jaguar.

Related Posts:




Powered by blog.mu with Pool theme design by Borja Fernandez.