On Wed, Aug 6, 2008 at 5:02 PM, Richard Lawrence <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello everyone,
>
> I've had a heck of a time trying to install matplotlib.  I've tried
> installing both from svn and from the pre-built 0.98.3 egg with no
> success.  Any tips would be appreciated.
>
> My setup is:
> Mac Pro PPC G5, OS X 10.5.4
> Python 2.5.1 (Apple build)
> Numpy 1.2.0.dev5615 -- ran svn update and rebuilt this morning
> Scipy 0.7.0.dev4603 -- ran svn update and rebuilt this morning
>
> 1. Error with the SourceForge 0.98.3 egg for OS X:
> $ easy_install matplotlib-0.98.3-py2.5-macosx-10.3.egg
> [snip]
> REQUIRED DEPENDENCIES
> ~                        * numpy 1.1 or later is required; you have
> ~                        * 1.0.5.dev4673
> error: Setup script exited with 1
>
> As far as I know, numpy 1.0.5.dev4673 was never installed on this
> machine.  Running python and checking numpy.__version__ gives the
> version string listed above (1.2.etc.).  I can't find any other versions
> on the system, and I don't know where the egg would be finding this
> phantom version.

Most likely there is another version of numpy on your system that easy
install is picking up (multiple versions of python perhaps?).  You
might try to find them with

  > find / -name numpy -type d

> - -lfreetype -lz -lz -lstdc++ -lm -o
> build/lib.macosx-10.3-fat-2.5/matplotlib/ft2font.so
> - -Wl,-framework,CoreServices,-framework,ApplicationServices
> ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib, file
> is not of required architecture for architecture i386
> collect2: ld returned 1 exit status
> lipo: can't open input file:
> /var/folders/7h/7hHE3mwXHGCNGWujjUd1L++++U2/-Tmp-//ccS3ZBhp.out (No such
> file or directory)
> error: command 'g++' failed with exit status 1
>
> ~From this, it would seem that the build is attempting to use an external
> libpng, despite the fact that I built it from source without a problem,
> it's located in /usr/local/src/mpl-build/libpng-1.2.29, and:
>
> $ echo $CFLAGS
> - -arch ppc -arch i386 -I/usr/local/src/mpl-build/libpng-1.2.29
> - -I/usr/local/src/mpl-build/freetype-2.3.7/include
> $ echo $LDFLAGS
> - -arch ppc -arch i386 -L/usr/local/src/mpl-build/libpng-1.2.29
> - -L/usr/local/src/mpl-build/freetype-2.3.7
>
> What am I missing?

Did you edit setupext.py to remove the basedir settings ans Charlie
recommended?  Also, let's make sure that the files in your ld path are
there and of the right type?  What does

  > file /usr/local/src/mpl-build/libpng-1.2.29/libpng*

return?

> Any help would be greatly appreciated...I've played with this all day
> and made little progress.

One other option is to try following the build instructions I posted
at http://ipython.scipy.org/moin/Py4Science/InstallationOSX

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to