Re: [Matplotlib-users] Can't get pylab to import with Python 2.4 on Mac OS X 10.4.8 on PPC

2006-12-28 Thread Jeff Whitaker
Chris Pettit wrote:
> Thanks in advance to anyone who can help. This is my first extended  
> attempt to make matplotlib work, and I'm relatively new to the whole  
> Python world. I have MacPython2.4 running now, which seems to work  
> fine. I installed everything for matplotlib, scipy, etc., from the  
> Mac OS 10.4 SciPy Superpack binaries, so I didn't expect to have much  
> trouble, but I get the following when I try to import pylab:
>
>  >>> from pylab import *
> Traceback (most recent call last):
>File "", line 1, in ?
>File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/pylab.py", line 1, in ?
>  from matplotlib.pylab import *
>File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/matplotlib/pylab.py", line 202, in ?
>  from axes import Axes, PolarAxes
>File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/matplotlib/axes.py", line 15, in ?
>  from axis import XAxis, YAxis
>File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/matplotlib/axis.py", line 25, in ?
>  from font_manager import FontProperties
>File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/matplotlib/font_manager.py", line 39, in ?
>  from matplotlib import ft2font
> ImportError: Failure linking new module: /Library/Frameworks/ 
> Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ 
> ft2font.so: Symbol not found: _FMDisposeFontFamilyIterator
>Referenced from: /usr/local/lib/libfreetype.6.dylib
>Expected in: flat namespace
>
>
> I saw a couple of posts about problems caused by libfreetype in the  
> most recent Apple X11 update, so I tried reinstalling Freetype2 from  
> souce and ended up with libfreetype6.3.10 in my /usr/local/lib. I  
> tried moving this to my /usr/X11R6/lib and resetting the symbolic  
> links to point to this, but no luck.
>
> Any advice?
>
> Thanks,
> Chris Pettit
>
>   

Chris:  Do you have  /usr/local/lib/libfreetype.6.dylib?  (it should be 
a symlink to /usr/local/lib/libfreetype.6.3.dylib)
If you do, I imagine that your version of libfreetype is old and doesn't 
have  the _FMDisposeFontFamilyIterator  symbol.

You could try setting the /usr/local/lib/libfreetype.6.dylib symlink to 
point to /usr/X11R6/lib/libfreetype.6.3.x.dylib.

-Jeff

-- 
Jeffrey S. Whitaker Phone  : (303)497-6313
Meteorologist   FAX: (303)497-6449
NOAA/OAR/PSD  R/PSD1Email  : [EMAIL PROTECTED]
325 BroadwayOffice : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web: http://tinyurl.com/5telg


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Can't get pylab to import with Python 2.4 on Mac OS X 10.4.8 on PPC

2006-12-28 Thread Chris Pettit
Thanks in advance to anyone who can help. This is my first extended  
attempt to make matplotlib work, and I'm relatively new to the whole  
Python world. I have MacPython2.4 running now, which seems to work  
fine. I installed everything for matplotlib, scipy, etc., from the  
Mac OS 10.4 SciPy Superpack binaries, so I didn't expect to have much  
trouble, but I get the following when I try to import pylab:

 >>> from pylab import *
Traceback (most recent call last):
   File "", line 1, in ?
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/pylab.py", line 1, in ?
 from matplotlib.pylab import *
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/pylab.py", line 202, in ?
 from axes import Axes, PolarAxes
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/axes.py", line 15, in ?
 from axis import XAxis, YAxis
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/axis.py", line 25, in ?
 from font_manager import FontProperties
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/font_manager.py", line 39, in ?
 from matplotlib import ft2font
ImportError: Failure linking new module: /Library/Frameworks/ 
Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ 
ft2font.so: Symbol not found: _FMDisposeFontFamilyIterator
   Referenced from: /usr/local/lib/libfreetype.6.dylib
   Expected in: flat namespace


I saw a couple of posts about problems caused by libfreetype in the  
most recent Apple X11 update, so I tried reinstalling Freetype2 from  
souce and ended up with libfreetype6.3.10 in my /usr/local/lib. I  
tried moving this to my /usr/X11R6/lib and resetting the symbolic  
links to point to this, but no luck.

Any advice?

Thanks,
Chris Pettit

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users