Getting wxPython to work on a Mac

Timothy Smith tssmith at sonic.net
Tue Dec 4 21:35:59 EST 2007


Not sure exactly what I need to do to get wxPython to work on either of 
my Macs. (One's a notebook running Tiger (OS X 10.4.11), the other a Mac 
Pro running Leopard (10.5.1.))

I downloaded what should be the latest binary, and it installed without 
error. So Python comes up as

$ python -V
Python 2.5.1
$ ls -l /usr/bin/python
lrwxr-xr-x  1 root  wheel  72 Oct 26 17:59 /usr/bin/python@ -> 
../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python
$

I set PYTHONPATH to 
System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5

The Python interpreter works OK, far as I can tell. wx sort of works, 
but all the functionality is not there. For example, working through the 
exercises in "WxPython in Action" by Noel Rappin, I find that while I 
can create and display a frame, and create an app, stuff like 
wx.MessageBox() just doesn't work.

The same exercises work just fine on a Python 2.5.1 installation on my 
wife's Windows XP machine.

Any help appreciated. (I am obviously both a Python and a Wx beginner. 
And not much of a Unix expert either. :-)



More information about the Python-list mailing list