|
From: John S. <pra...@ho...> - 2009-05-06 21:53:51
|
Hi- I'm writing again.
I managed to switch my python version to 2.5, and reloaded numpy and matplotlib. Unfortunately, pylab still will not load:
>>> import pylab
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py", line 206, in <module>
from matplotlib import mpl # pulls in most modules
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py", line 2, in <module>
from matplotlib import axis
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", line 9, in <module>
import matplotlib.font_manager as font_manager
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py", line 52, in <module>
from matplotlib import ft2font
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
Reason: image not found
What is going on? Is ft2font.so broken?
I'm using python 2.5.2 on a macbook, intel microprocessor, mac os 10.4.11
_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009 |
|
From: Christopher B. <Chr...@no...> - 2009-05-06 22:09:43
|
John Seales wrote: > Hi- I'm writing again. > > I managed to switch my python version to 2.5, and reloaded numpy and matplotlib. how did you install matplotlib? Unfortunately, pylab still will not load: > 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 > Reason: image not found > > What is going on? Is ft2font.so broken? does that file exist? If so, try running: $ file ft2font.so and see what it says -- it may be a PPC- only binary. > I'm using python 2.5.2 on a macbook, intel microprocessor, mac os 10.4.11 -- 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 Chr...@no... |
|
From: John S. <pra...@ho...> - 2009-05-06 23:24:47
|
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 > Date: Wed, 6 May 2009 15:09:57 -0700 > From: Chr...@no... > To: mat...@li... > Subject: Re: [Matplotlib-users] O pylab why do you refuse to import? > > John Seales wrote: > > Hi- I'm writing again. > > > > I managed to switch my python version to 2.5, and reloaded numpy and matplotlib. > > how did you install matplotlib? > > Unfortunately, pylab still will not load: > > 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 > > Reason: image not found > > > > What is going on? Is ft2font.so broken? > > does that file exist? > > If so, try running: > > $ file ft2font.so > > and see what it says -- it may be a PPC- only binary. > > > > I'm using python 2.5.2 on a macbook, intel microprocessor, mac os 10.4.11 > > -- > 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 > > Chr...@no... > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users _________________________________________________________________ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009 |
|
From: John S. <pra...@ho...> - 2009-05-06 23:41:00
|
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 I installed matplotlib from the dmg file. I clicked on the icon to install it. > Date: Wed, 6 May 2009 15:09:57 -0700 > From: Chr...@no... > To: mat...@li... > Subject: Re: [Matplotlib-users] O pylab why do you refuse to import? > > John Seales wrote: > > Hi- I'm writing again. > > > > I managed to switch my python version to 2.5, and reloaded numpy and matplotlib. > > how did you install matplotlib? > > Unfortunately, pylab still will not load: > > 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 > > Reason: image not found > > > > What is going on? Is ft2font.so broken? > > does that file exist? > > If so, try running: > > $ file ft2font.so > > and see what it says -- it may be a PPC- only binary. > > > > I'm using python 2.5.2 on a macbook, intel microprocessor, mac os 10.4.11 > > -- > 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 > > Chr...@no... > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users Insert movie times and more without leaving Hotmail®. See how. _________________________________________________________________ Hotmail® has a new way to see what's up with your friends. http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009 |
|
From: Christopher B. <Chr...@no...> - 2009-05-06 23:55:06
|
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 Chr...@no... |
|
From: John S. <pra...@ho...> - 2009-05-07 00:45:26
|
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: Chr...@no... > To: mat...@li... > 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 > > Chr...@no... > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users _________________________________________________________________ Hotmail® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009 |
|
From: Joshua L. <dis...@gm...> - 2009-05-07 04:19:52
|
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 <pra...@ho...> 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: Chr...@no... >> To: mat...@li... >> 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 >> >> Chr...@no... >> >> >> ------------------------------------------------------------------------------ >> 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 >> Mat...@li... >> 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: John S. <pra...@ho...> - 2009-05-07 15:48:49
|
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: pra...@ho... To: mat...@li... 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: Chr...@no... > To: mat...@li... > 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 > > Chr...@no... > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users Hotmail® goes with you. Get it on your BlackBerry or iPhone. _________________________________________________________________ Hotmail® has a new way to see what's up with your friends. http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009 |
|
From: John S. <pra...@ho...> - 2009-05-07 15:50:28
|
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: pra...@ho... To: mat...@li... 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: Chr...@no... > To: mat...@li... > 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 > > Chr...@no... > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users Hotmail® goes with you. Get it on your BlackBerry or iPhone. _________________________________________________________________ Hotmail® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009 |
|
[Matplotlib-users] OS X binary installer broken on 10.4? (was: O
pylab why do you refuse to import?)
From: Jouni K. S. <jk...@ik...> - 2009-05-07 09:41:54
|
John Seales <pra...@ho...> writes: >> > I'm using python 2.5.2 on a macbook, intel microprocessor, mac os 10.4.11 > I installed matplotlib from the dmg file. I clicked on the icon to install it. I assume you mean the mpkg file - I don't see any dmg file on the download page. It seems to me that something is wrong with that file, since release/osx/Makefile compiles its own Freetype and attempts to link to it statically, but the file ft2font.so distributed within the mpkg installer links dynamically to /usr/X11R6/lib/libfreetype.6.dylib. AFAIK, the static linking is done precisely to avoid version mismatches between different versions of freetype, zlib, and png on various versions of OS X. Several *.so files within the mpkg link to /usr/X11R6/lib/libfreetype.6.dylib and /usr/lib/libz.1.dylib (though, curiously, none link to the system libpng). I suppose this is exactly the kind of problem that results from dynamic linking to a wrong version of freetype: >> > 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 >> > Reason: image not found -- Jouni K. Seppänen http://www.iki.fi/jks |
|
From: Christopher B. <Chr...@no...> - 2009-05-07 16:07:03
|
John Seales wrote: > 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. If it works, you're probably done, but, for the sake of completeness, what do you get from: $ ls -l /usr/X11R6/lib/libfreetype* -rw-r--r-- 1 root wheel 348476 Jan 21 07:27 /usr/X11R6/lib/libfreetype.6.3.dylib lrwxr-xr-x 1 root wheel 21 Aug 14 2008 /usr/X11R6/lib/libfreetype.6.dylib -> libfreetype.6.3.dylib -rw-r--r-- 1 root wheel 831260 Mar 23 2007 /usr/X11R6/lib/libfreetype.a lrwxr-xr-x 1 root wheel 21 Aug 14 2008 /usr/X11R6/lib/libfreetype.dylib -> libfreetype.6.3.dylib This is the traditional *nix convention: the real lib is libfreetype.6.3.dylib (major an minor version specified) The other ones are links to it. I suspect that you where missing the libfreetype.6.dylib link before, and that you may now have a full lib there, rather than a link. Which probably is fine, but not quite standard. -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 Chr...@no... |
|
From: Brian G. <ell...@gm...> - 2009-05-07 16:19:18
|
I too have been bit by related freetype problems... Is there a way of telling matplotlib which freetype dylib to use on OS X? I have multiple installed and it finds the wrong one by default. I can probably go and hack on the setup.py/setupext.py to do this but I am hoping there is any easier way. Thanks, Brian On Thu, May 7, 2009 at 9:07 AM, Christopher Barker <Chr...@no...> wrote: > John Seales wrote: >> 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. > > If it works, you're probably done, but, for the sake of completeness, > what do you get from: > > $ ls -l /usr/X11R6/lib/libfreetype* > > -rw-r--r-- 1 root wheel 348476 Jan 21 07:27 > /usr/X11R6/lib/libfreetype.6.3.dylib > > lrwxr-xr-x 1 root wheel 21 Aug 14 2008 > /usr/X11R6/lib/libfreetype.6.dylib -> libfreetype.6.3.dylib > > -rw-r--r-- 1 root wheel 831260 Mar 23 2007 /usr/X11R6/lib/libfreetype.a > > lrwxr-xr-x 1 root wheel 21 Aug 14 2008 > /usr/X11R6/lib/libfreetype.dylib -> libfreetype.6.3.dylib > > This is the traditional *nix convention: > > the real lib is libfreetype.6.3.dylib (major an minor version specified) > > The other ones are links to it. > > I suspect that you where missing the libfreetype.6.dylib link before, > and that you may now have a full lib there, rather than a link. Which > probably is fine, but not quite standard. > > -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 > > Chr...@no... > > ------------------------------------------------------------------------------ > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Christopher B. <Chr...@no...> - 2009-05-07 16:12:44
|
Jouni K. Seppänen wrote: > AFAIK, the static linking is done precisely to avoid version mismatches > between different versions of freetype, zlib, and png on various > versions of OS X. Well, it was done originally because all those libs weren't there at all originally. Apple has slowly been adding more (and the first freetype they included was not compatible with MPL in some way) But yes, if there are different versions floating around static linking is a good idea. Several *.so files within the mpkg link to > /usr/X11R6/lib/libfreetype.6.dylib and /usr/lib/libz.1.dylib (though, > curiously, none link to the system libpng). I think zlib as been pretty reliable, freetype not so much, and I don't think Apple provides libpng at all (I've got a whole bunch of copies on my system that came with various packages -- but none in system locations) > I suppose this is exactly the kind of problem that results from dynamic > linking to a wrong version of freetype: In this case, I think a symlink was missing -- which looks like an Apple bug, but I can't tell you why it didn't bite me -- I suppose it depends on what order you installed/upgraded things. -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 Chr...@no... |
|
From: Christopher B. <Chr...@no...> - 2009-05-07 16:52:23
|
Brian Granger wrote: > I too have been bit by related freetype problems... > > Is there a way of telling matplotlib which freetype dylib to use on OS > X? at run time, no. At built time, then: > I can probably go and hack on the setup.py/setupext.py that's how. The tough part is that AFAICT, there is no way to specify a particular lib to link to, rather, you specify where to look for libs, so you need to make sure that it's looking where you want before where you don't want. Ideally, the MPL community would decide on which is the "canonical" choice, and that would be how setup.py would be written. But there are so many options, it's hard to come to consensus. Personally, I'd like to see the "Kyng Chaos" frameworks be the "standard" basis for python extension binaries: http://www.kyngchaos.com/software:frameworks That's a pretty complete set, and would support MPL, PIL, etc, etc.... But it seems folks prefer to do static linking for distributed binaries, which is good too, but a bit tricky, as gcc really prefers to dynamically link -- it's easy to accidentally include a dynamic link without realizing it. -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 Chr...@no... |