Thanks Chris,

I've decided to deactivate the darwinports python and I've installed python2.4/wxPython from your links below.
I have MPL/numpy/scipy eggs from Chris Fonnesbeck (http://homepage.mac.com/fonnesbeck/mac) and Charlie Moad that uses wxPython/python24.

I had started looking at pygtk for GUI apps, but I shall now take a look at wx.

Thanks to you and Charlie for your help.

For those interested in the scipy/numpy egg, I had two issues I had was that the scipy egg didn't seem to install correctly.
### 1
I found that if instead I unzipped the scipy egg file and then rm'd it, there was no problem.
ie.
cd /Library/Frameworks/Python.framework/Versions/Current/lib/python2.4/site-packages
sudo unzip scipy-0.4.5.1597-py2.4-macosx-10.4-ppc.egg
sudo mv scipy-0.4.5.1597-py2.4-macosx-10.4-ppc.egg scipy-0.4.5.1597-py2.4-macosx-10.4-ppc.bad.egg

so there must be some issue with the pkg loader from eggs rather than directories.

### 2.
In scipy/cluster/vq.py
I had to change line 306

from numpy.randint import randint
.
.
.
#            guess = take(obs,randint.rvs(0,No,k),0)        # gjok20060208
            guess = take(obs,randint(0,No,k),0)

regards,

Graeme


Graeme O'Keefe, PhD, MACPSEM
Principal Medical Physicist
Centre for PET
Austin Hospital
Tel: (613)-9496-5767
Fax: (613) 9458-5023




On 14/02/2006, at 8:20 AM, Christopher Barker wrote:

Graeme O'Keefe wrote:
I'm using darwinports/python24 whereas the preinstalled environment which includes wxpython is python23.

There are easy installs for python2.4 and wxPython 2.6.1 for python2.4:

http://www.undefined.org/python/

http://www.pythonmac.org/packages/
(or the wxPython download page)

I've built MPL for those versions in the past, I don't have the latest, and I haven't figure out eggs yet, but I should some day.

I'll wait until matplotlib/numpy makes it into darwinports.

Essentially, darwinports is kind of like a Unix within OS-X, so I'd go with all darwinports or no darwinports (for Python stuff)

I'm not particularly wedded to the idea of using py-gtk2, is there any compelling reason to use wxpython over py-gtk2?

It depends on how you are using it. wxPython lets you develop fairly native cross platform apps. It also works with the native Mac GUI (rather than X11). If you're using MPL stand alone (rather than embedded in a larger GUI app), and you're happy with darwinports and X11, then there is no advantage.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

                                    

NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov