John,

I've seen this problem happen before with someone else; the person's
X11 installation for some reason included the file
libfreetype.6.3.dylib but not librfreetype.6.3.dylib. Did you install
X11 before or after installing the Xcode development tools? Also, if
you had to install X11 yourself, I'm assuming you're using OS X Tiger
(or at least not 10.5.x)? I'd recommend trying a reinstall of X11 (if
you're not using Leopard) and then Xcode in your situation, but a
quicker workaround is to install freetype yourself (thus putting a
copy in /usr/local) and build matplotlib from source rather than use
the installer package.

Josh

On Wed, May 6, 2009 at 5:44 PM, John Seales <praxbaf...@hotmail.com> wrote:
> 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.bar...@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.bar...@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.
> ------------------------------------------------------------------------------
> 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
>
>

------------------------------------------------------------------------------
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

Reply via email to