Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-10 Thread Brian Zambrano
Following those steps, my app started just fine on Snow Leopard. Thank you Emanuele! I would, however, like to understand this problem a bit more so I can fix the build. I'd like this app to run out of the box. Looking at ft2font.so: otool -L Resources/lib/python2.5/matplotlib/ft2font.so

Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-10 Thread Emanuele Santos
It should load /usr/lib/libgcc_s.1.dylib. The problem is that the binary package of matplotlib for mac is linked against /usr/local/lib/ libgcc_s.1.dylib. I tried using install_name_tool and change this on the bundle and it does the trick. $ cd Resources/lib/python2.5 install_name_tool

Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-10 Thread Christopher Barker
Emanuele Santos wrote: It should load /usr/lib/libgcc_s.1.dylib. The problem is that the binary package of matplotlib for mac is linked against /usr/local/lib/libgcc_s.1.dylib. ouch -- it shouldn't be. Did you build it yourself or is that the official one? Also, it seems that Py2app really

Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-10 Thread John Hunter
On Tue, Nov 10, 2009 at 1:26 PM, Emanuele Santos emanuelesan...@gmail.com wrote: Hi, Chris I think it is the official one (0.98.5). I didn't try the latest version but I can check if this is still true. Could you please -- there were some bugs in linking on the OSX binaries that were fixed

Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-10 Thread Brian Zambrano
FWIW, I'm using the official 0.98.5. Looking at the app bundle, all of the matplotlib .so files are linking against: @executable_path/../Frameworks/libgcc_s.1.dylib ...*except* matplotlib/backends/_macosx.so which is linking against: /usr/lib/libgcc_s.1.dylib So, I didn't see any looking in

Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-10 Thread Emanuele Santos
I On Tue, Nov 10, 2009 at 11:57 AM, John Hunter jdh2...@gmail.com wrote: On Tue, Nov 10, 2009 at 1:26 PM, Emanuele Santos emanuelesan...@gmail.com wrote: Hi, Chris I think it is the official one (0.98.5). I didn't try the latest version but I can check if this is still true. Could you

Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-10 Thread Brian Zambrano
I just upgraded to 0.99.1 and it's working perfectly now. I was previously hacking _png.so with install_name_tool, and that's not necessary anymore as well. Thank you to Emanuele and everyone else...much appreciated! BZ On Tue, Nov 10, 2009 at 1:38 PM, Emanuele Santos

[Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-09 Thread Brian Zambrano
I'm getting my Py2app build running and think I've worked around some issues, but another major one has come up. My application is being built on OS X 10.5.8, where matplotlib is, oviously, installed. On another 10.5.X machine without any of the app's dependencies, my compiled app runs just

Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-09 Thread Emanuele Santos
We saw the same problem with VisTrails (www.vistrails.org). It seems that python.org's python can't build the fonts in ~/.matplotlib on snow leopard. We noticed that importing matplotlib.axis using Apple's python will do that. So this is the work-around we found for vistrails (bundled with