473,236 Members | 1,592 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,236 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 2165
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: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.