matplotlib can't find pygtk during build

Stephen Uhlhorn wrote:

My python is from ActiveState (Framework) which
was recommended by the scipy people.

I wonder why, I don't what the advantages of it are over the pythonmac version -- last I heard it did NOT support Universal binaries, but maybe that makes things a bit easier, particularly for scipy, and there is no easy way to build universal binaries from Fortran.

Here's the real saga. I had a working Fink installaiton of
python/numpy/scipy/matplotlib until an update to scipy broke critical
functions (fopen). The fix is in cvs, so this whole mess started in an
attempt to use a cvs version of scipy.

You could (should) have re-built scipy inside your fink distro.

I tried wxpython2.6 first, but figure windows never got drawn on my
display, even when I used pythonw.

wxPython 2.6.3, as distributed on the wxPython site and pythonmac, should work with MPL. I've lost track of whether there is a properly built binary of MPL on pythonmac at this point. Search these archives, and you'll see discussion of how to do it, or send a note to me if this one fails:

http://pythonmac.org/packages/py24-fat/index.html

Russell, if you're listening -- did you ever post your binary for Python2.4, wxPython2.6.3 ?

So I tried pygtk because it worked
fine for me under fink and on my linux box. I thought I could build a
binary pygtk with darwinports and use it in my installation... I guess
not.

nope, PYGTK is a good option IF you want to stick with darwinports or Fink, but not if you want the more "mac native" setup.

1) Build a mpkg of pygtk using darwinports and install it under my
python. Is this possible?

not easily -- I don't think it's been done --someone correct me if I'm wrong.

2) Get wx working somehow. Where do I begin?

with the package above, the notes that should be on this list, and if you're lucky with Russell Owens' binary. If all that fails, drop me a note, either Russell or I should be able to get you going.

Note that there are some yet-unresolved issues with the wx back-end with wxPython2.8, at least on OS-X, so I'd stick with 2.6.3. OH, and I've lost track, are you using Python 2.4 or 2.5? It should all work with 2.5, but I (and I think Russell) are using wxPython2.8 with Python 2.5 and wxPython2.6 with Python 2.4.

3) Cocoa backend? I didn't know there was one.

It may not have ever matured -- anyone know?

4) Go back to fink or darwinports and fight these problems on the scipy side.

If you had Fink all working, it might be easiest to start there -- you just need to re-build scipy with all the fink tools -- that should be much like building it on Linux.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

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

Chris.Barker@...259...

Stephen Uhlhorn wrote:

My python is from ActiveState (Framework) which
was recommended by the scipy people.

Here's the real saga. I had a working Fink installaiton of
python/numpy/scipy/matplotlib until an update to scipy broke critical
functions (fopen). The fix is in cvs, so this whole mess started in an
attempt to use a cvs version of scipy.

You could (should) have re-built scipy inside your fink distro.

I would like to add that I used to keep a unix/X11 build of python on my Mac in parallel with a framework build so I could test a GUI app on X11 and Aqua. (I build the stuff myself instead of using fink; I never could get comfortable with fink). In any case, I eventually gave up. Installing packages that had a GUI interface took extra work -- for the X11 python I had to temporarily hide the Aqua GUI stuff. Eventually I gave up and ditched the X11 version.

But if you *only* use fink then this comment is irrelevant--they've handled it for you.

I tried wxpython2.6 first, but figure windows never got drawn on my
display, even when I used pythonw.

wxPython 2.6.3, as distributed on the wxPython site and pythonmac, should work with MPL. I've lost track of whether there is a properly built binary of MPL on pythonmac at this point. Search these archives, and you'll see discussion of how to do it, or send a note to me if this one fails:

Mac OS X Python Packages for Universal Python 2.4 on Mac OS X 10.3.9 and later (Intel and PPC)

Russell, if you're listening -- did you ever post your binary for Python2.4, wxPython2.6.3 ?

It's up. Bob Ippolito put it up shortly after he got back from vacation.

-- Russell

···

At 9:42 AM -0800 2007-02-05, Christopher Barker wrote:

Stephen:

Russell E Owen wrote:

It's up. Bob Ippolito put it up shortly after he got back from vacation.

So this should work, with the Python, numpy, wxPython2.6.3 that are also there:

http://pythonmac.org/packages/py24-fat/index.html

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

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

Chris.Barker@...259...

Hmm... After the long discussion I'm trying to decide what the best
route is. If what I want is simply a stable scipy/matplotlib
installation (OS X), what is the best (most stable and predictable)
method?

BTW- What is wrong with the ActiveState python installation? It was
recommended on the scipy site.

-stephen

···

On 2/5/07, Christopher Barker <Chris.Barker@...259...> wrote:

Stephen:

Russell E Owen wrote:
> It's up. Bob Ippolito put it up shortly after he got back from vacation.

So this should work, with the Python, numpy, wxPython2.6.3 that are also
there:

Mac OS X Python Packages for Universal Python 2.4 on Mac OS X 10.3.9 and later (Intel and PPC)

-Chris

Stephen Uhlhorn wrote:

If what I want is simply a stable scipy/matplotlib
installation (OS X), what is the best (most stable and predictable)
method?

I'm very sorry to say that I don't know that there is a best. I, and others, have tried to keep the archive at pythonmac up to date, but building SciPy is still a pain in the %$$%^%, and there is no easy solution unless (until) Apple of someone puts out a Fortran compiler that makes Universal binaries.

However, if you like (or don't mind) fink or darwinports, that may be the easiest way to go -- you should be able to use them to build stuff yourself if the package you want is not up to date.

They don't support Universal binaries either, but that only matters if you want to re-distribute them.

BTW- What is wrong with the ActiveState python installation? It was
recommended on the scipy site.

I have no idea. At one point, it didn't support Universal binaries -- that may not be true anymore, and may not matter for you anyway.

There are WAY too many ways to install Python on OS-X. A while back, the MacPython community (that is, the folks on the pythonmac mailing list) decided that the Universal Framework Build, as found on pythonmac.org and python.org should be advocated as "the" way to do Python on OS-X, and the one that we would try as best we could to support with binary packages, and support on the mailing list.

Fink and darwinports are other beasts altogether, and take care of themselves.

I don't know what ActiveState's goal are with their build. At one point they had a package repository of some kind -- do they now?

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

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

Chris.Barker@...259...