python, wxpython and Mac OS X
robert.kern at gmail.com
Sun Apr 8 22:46:43 EDT 2007
> I'm using an intel imac which came with python 2.3.5 pre-intstalled on
> OS 10.4.7. I was able run a hello world wxPython script in Terminal
> by typing:
> $pythonw wxPythonTest.py
> Yesterday, I installed python 2.4.4 which I downloaded from the
> MacPython website, and it seems to have installed correctly:
Why 2.4.4 instead of the official 2.5 binary from www.python.org?
> Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
> [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> However, now when I try to run my hello world wxPython script in
> Terminal, I get the error message:
> Traceback (most recent call last):
> File "wxPythonTest.py", line 1, in ?
> import wx
> ImportError: No module named wx
> Does that mean I need to install a newer version of wxPython?
The packages that are installed (or you might install) for Python 2.3 are
entirely separate from those that you would install for Python 2.4. It's not
that you need a newer version of wxPython; it's that you need to install one for
Python 2.4 period.
> Also, what wxPython download should I install?
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list