467,118 Members | 995 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,118 developers. It's quick & easy.

python, wxpython and Mac OS X

Hi,

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:

$python
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? If so,
I'm not sure how to proceed. The wxPython download page says:
-----
The Max OSX version of wxPython is distributed as a set of mountable
disk images. The runtime verisons contain Installer packages, as well
as a script that can perform an uninstall of previous installs of
wxPython. (NOTE: If you have versions prior to 2.5.3.1 installed
please do run the uninstaller to remove the older version.)
------
I looked around in Finder, but I can't tell what version of wxPython
that came pre-installed on my imac, so I am not sure whether I need to
uninstall it.

Also, what wxPython download should I install?

Apr 9 '07 #1
  • viewed: 4677
Share:
4 Replies
7stud wrote:
Hi,

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?

http://www.python.org/download/
$python
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?
For 2.4:
http://prdownloads.sourceforge.net/w...10.4-py2.4.dmg

For 2.5:
http://prdownloads.sourceforge.net/w...10.4-py2.5.dmg

--
Robert Kern

"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

Apr 9 '07 #2
On Apr 8, 8:46 pm, Robert Kern <robert.k...@gmail.comwrote:
7stud wrote:

Why 2.4.4 instead of the official 2.5 binary fromwww.python.org?

http://www.python.org/download/
1) On some download page that listed both python 2.5 and 2.4, it said
that python 2.4 had more packages/modules available for Macs than 2.5.

2) The wxPython website says that to use wxPython on a Mac, you need a
special "framework" build of python--like the one that comes
preinstalled. It says framework builds are available for python 2.4.

Should I remove 2.4.4 and install 2.5 instead?
>
Also, what wxPython download should I install?

For 2.4:http://prdownloads.sourceforge.net/w...-osx-unicode-2...

For 2.5:http://prdownloads.sourceforge.net/w...-osx-unicode-2...
Thanks.

Apr 9 '07 #3
7stud wrote:
On Apr 8, 8:46 pm, Robert Kern <robert.k...@gmail.comwrote:
>Why 2.4.4 instead of the official 2.5 binary fromwww.python.org?

http://www.python.org/download/

1) On some download page that listed both python 2.5 and 2.4, it said
that python 2.4 had more packages/modules available for Macs than 2.5.
That's probably still a fair statement.
2) The wxPython website says that to use wxPython on a Mac, you need a
special "framework" build of python--like the one that comes
preinstalled. It says framework builds are available for python 2.4.
The 2.5 binary on www.python.org is also a framework build.
Should I remove 2.4.4 and install 2.5 instead?
No, it's okay.

--
Robert Kern

"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

Apr 9 '07 #4
On Apr 9, 8:10 am, Robert Kern <robert.k...@gmail.comwrote:
Should I remove 2.4.4 and install 2.5 instead?

No, it's okay.

--
Robert Kern
Ok, thanks. I'll download wxPython and see if I can get it installed
properly.

Apr 10 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

37 posts views Thread by Ubaidullah Nubar | last post: by
4 posts views Thread by Logan | last post: by
3 posts views Thread by Equis Uno | last post: by
8 posts views Thread by flupke | last post: by
3 posts views Thread by Kenneth McDonald | last post: by
4 posts views Thread by Sathyaish | last post: by
22 posts views Thread by Glurt Wuntal | last post: by
13 posts views Thread by filippo | last post: by
20 posts views Thread by Thorsten Kampe | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.