Victory!

Turns out that libfreetype in X11 has a bug with mac os 10.4.11. I found out how to fix it on http://forums.macosxhints.com/archive/index.php/t-98792.html . The new libfreetype, once in the right spot and called libfreetype.6.dylib seems to work.

Thanks, Chris, for helping me.


From: praxbaffle@hotmail.com
To: matplotlib-users@lists.sourceforge.net
Date: Wed, 6 May 2009 17:44:12 -0700
Subject: Re: [Matplotlib-users] O pylab why do you refuse to import?

I do have X11. It looks like there's a problem with the libfreetype, but I don't understand what the problem is.

john-seales-computer:/ johnseales$ file /usr/X11R6/lib/libfreetype.6.dylib
/usr/X11R6/lib/libfreetype.6.dylib: cannot open (/usr/X11R6/lib/libfreetype.6.dylib)

john-seales-computer:/ johnseales$ file /usr/X11R6/lib/libfreetype.6.3.dylib
/usr/X11R6/lib/libfreetype.6.3.dylib: Mach-O universal binary with 2 architectures
/usr/X11R6/lib/libfreetype.6.3.dylib (for architecture ppc):Mach-O dynamically linked shared library ppc
/usr/X11R6/lib/libfreetype.6.3.dylib (for architecture i386):       Mach-O dynamically linked shared library i386

> Date: Wed, 6 May 2009 16:55:23 -0700
> From: Chris.Barker@noaa.gov
> To: matplotlib-users@lists.sourceforge.net
> Subject: Re: [Matplotlib-users] O pylab why do you refuse to import?
>
> note: make sure to include the list, it doesn't look like you did.
>
> John Seales wrote:
> > Here's what it says:
> >
> > $ file ft2font.so
> > ft2font.so: Mach-O universal binary with 2 architectures
> > ft2font.so (for architecture i386): Mach-O bundle i386
> > ft2font.so (for architecture ppc): Mach-O bundle ppc
>
> that's right, but now I see that that wasn't the issue anyway:
>
> > > > ImportError:
> > dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so,
> > 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
> > > > Referenced from:
> > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so
>
> ft2font is relying on libfreetype. I think that's the one that Apple
> delivers with their X11 (I know I have it, anyway), but I think X11 is
> an optional install, so you may not have it.
>
> Is that file there? ON my system:
>
> $ file /usr/X11R6/lib/libfreetype.6.dylib
> /usr/X11R6/lib/libfreetype.6.dylib: symbolic link to `libfreetype.6.3.dylib'
>
> and
>
> $ file /usr/X11R6/lib/libfreetype.6.3.dylib
> /usr/X11R6/lib/libfreetype.6.3.dylib: Mach-O dynamically linked shared
> library ppc
>
> so I have it, and it's a ppc lib, which makes sense, as I'm running on a
> ppc machine.
>
>
> If you don't have it, probably the easiest thing to do is install
> Apple's X11 -- otherwise, perhaps MPL should be built against a static
> libfreetype.
>
> -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@noaa.gov
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


HotmailŪ goes with you. Get it on your BlackBerry or iPhone.

HotmailŪ goes with you. Get it on your BlackBerry or iPhone.