From: John H. <jd...@gm...> - 2009-09-28 16:14:50
|
On Mon, Sep 28, 2009 at 10:48 AM, William Stein <ws...@gm...> wrote: > If you could just try running your matplotlib build on > bsd.math.washington.edu and reporting about whether or not it works, > that would be very helpful, since it will indicate whether the problem > is somehow in Sage or in pyCXX or Matplotlib itself or something else. I was able to build into a mostly clean environment (rebuild all deps zlip, freetype, png) using my OSX make file in, but I had to update the MACOSX_DEPLOYMENT_TARGET to 10.6 (I've committed this to svn HEAD). PREFIX=~/devtest make -f make.osx fetch deps mpl_build mpl_install But even simple tests are failing with:: jdh2358@bsd:~> LD_LIBRARY_PATH=~/devtest/lib/ PYTHONPATH=~/devtest/lib/python2.6/site-packages/ /usr/bin/python -c 'import matplotlib; matplotlib.use("Agg"); from matplotlib.pyplot import *; plot([1,2,3]); savefig("test")' Traceback (most recent call last): File "<string>", line 1, in <module> File "/Users/jdh2358/devtest//lib/python2.6/site-packages/matplotlib/pyplot.py", line 7, in <module> from matplotlib.figure import Figure, figaspect File "/Users/jdh2358/devtest//lib/python2.6/site-packages/matplotlib/figure.py", line 16, in <module> import artist File "/Users/jdh2358/devtest//lib/python2.6/site-packages/matplotlib/artist.py", line 6, in <module> from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath File "/Users/jdh2358/devtest//lib/python2.6/site-packages/matplotlib/transforms.py", line 34, in <module> from matplotlib._path import affine_transform ImportError: /Users/jdh2358/devtest/lib/python2.6/site-packages/matplotlib/_path.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode) I'm attaching my build output in case anyone sees anything that might be triggering this 32bit/64bit problem (see attached for full output). I did not rebuild numpy and this may be the problem since the failure is in the _path module. I'll give that a try next jdh2358@bsd:mpl> head -30 build.out export PKG_CONFIG_PATH="/Users/jdh2358/devtest//lib/pkgconfig" &&\ export MACOSX_DEPLOYMENT_TARGET=10.6 &&\ export CFLAGS="-arch i386 -arch ppc -I/Users/jdh2358/devtest//include -I/Users/jdh2358/devtest//include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk" &&\ export LDFLAGS="-arch i386 -arch ppc -L/Users/jdh2358/devtest//lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" &&\ python2.6 setup.py build ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.0.svn python: 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.2.1 freetype2: found, but unknown version (no pkg-config) * WARNING: Could not find 'freetype2' headers in any * of '.', './freetype2'. OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) * Could not find 'libpng' headers in any of '.' Tkinter: Tkinter: 67083, Tk: 8.5, Tcl: 8.5 wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no |