wxPython on Panther

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:

Repeat for the other demo apps.

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