473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Getting wxPython to work on a Mac

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. :-)
Dec 5 '07 #1
4 2170
On Dec 4, 9:35 pm, Timothy Smith <tssm...@sonic.netwrote:
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. :-)
If you don't get an answer here, you should try the wxPython mailing
list:
http://www.wxpython.org/maillist.php
I'm sure they'll be able to help you out (I don't have a Mac, so I
don't know).
Dec 5 '07 #2
In article
<f2**********************************@y5g2000hsf.g ooglegroups.com>,
cm******@gmail.com wrote:
If you don't get an answer here, you should try the wxPython mailing
list:
http://www.wxpython.org/maillist.php
I'm sure they'll be able to help you out (I don't have a Mac, so I
don't know).
OK, will try there. Thanks.
Dec 5 '07 #3
>>>>Timothy Smith <ts*****@sonic.net(TS) wrote:
>TSNot sure exactly what I need to do to get wxPython to work on either of
TSmy Macs. (One's a notebook running Tiger (OS X 10.4.11), the other a Mac
TSPro running Leopard (10.5.1.))
>TSI downloaded what should be the latest binary, and it installed without
TSerror. So Python comes up as
>TS$ python -V
TSPython 2.5.1
TS$ ls -l /usr/bin/python
TSlrwxr-xr-x 1 root wheel 72 Oct 26 17:59 /usr/bin/python@ ->
TS../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python
TS$
Did you also install the latest wxPython, with the proper version,
corresponding to your python version?
>TSI set PYTHONPATH to
TSSystem/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
Why would you do that?
>TSThe Python interpreter works OK, far as I can tell. wx sort of works,
TSbut all the functionality is not there. For example, working through the
TSexercises in "WxPython in Action" by Noel Rappin, I find that while I
TScan create and display a frame, and create an app, stuff like
TSwx.MessageBox() just doesn't work.
>TSThe same exercises work just fine on a Python 2.5.1 installation on my
TSwife's Windows XP machine.
I tried the example (python_compare.py) and it just works, including the
MessageBox, on Tiger with python 2.5.1. I run the in Terminal (pythonw
python_compare.py) both with and without your PYTHONPATH.

How did you run the examples?
--
Piet van Oostrum <pi**@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: pi**@vanoostrum.org
Dec 5 '07 #4
On Dec 4, 2007 8:35 PM, Timothy Smith <ts*****@sonic.netwrote:
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.
There's a note at the top of the downloads page - the current wx
binary is built against MacPython, not the python that ships with 10.5

That said, 10.5 ships with wx 2.8.4, which is reasonably recent and
actually more recent than the book, so you should be pretty much okay
without any downloads.

I'm not sure if 10.5 ships with the scripts and applications for
wxPython - if not, you should download the "docs and demos" package
for 2.8.4 and test with those, especially PyShell and friends.

Specific details about what doesn't work (including the script you're
running and how you're running it) are welcomed if this doesn't help.
Dec 5 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: James Stroud | last post by:
Hello All, I will soon have an excuse to install a new operating system on my computer. I would like to know exactly what operating system I should have so that I can get wxPython going....
25
by: TPJ | last post by:
GUI's etc: PyGtk on Windows "(...) So if someone develops mainly for X and just wants to make sure that it is not impossible to run on Windows, you can use PyGTK. (...)", July 2nd, 1999 pyGTK...
84
by: John Perks and Sarah Mount | last post by:
we have some Python code we're planning to GPL. However, bits of it were cut&pasted from some wxPython-licenced code to use as a starting point for implementation. It is possible that some...
9
by: David Sulc | last post by:
Hi ! I've looked all over (internet, books, etc.) and I haven't found a very good ressource to get started with wxPython (yes, I've been through their tutorial). What I would basically like...
0
by: Robin Dunn | last post by:
Announcing ---------- The 2.6.3.0 release of wxPython is now available for download at http://wxpython.org/download.php. There have been many enhancements and fixes implemented in this...
0
by: Robin Dunn | last post by:
Announcing ---------- The 2.6.3.0 release of wxPython is now available for download at http://wxpython.org/download.php. There have been many enhancements and fixes implemented in this...
5
by: Che M | last post by:
Hello, I'm curious if it is easy to get panels on your wxPython apps to have backgrounds which are given by a jpg or other bitmap. I found...
8
by: Sean DiZazzo | last post by:
Is there something special you have to do to get a wxPython app to run remotely under xwindows? My Tkinter apps always automatically work that way, so I was surprised to even be confronted with...
16
by: Andrea Gavana | last post by:
Hi Diez & All, Do you mind explaining "why" you find it *buttugly*? I am asking just out of curiosity, obviously. I am so biased towards wxPython that I won't make any comment on this thread...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.