can't import pylab

I can't import pylab!!

it's a problem with ft2font. I checked for the existence of the files it's looking for, the libfreetype.6.dylib, and ft2font.so – they exist in the places they're supposed to. I don't really know what 'image not found' exactly means.

If anyone has any suggestions, I will be very grateful.

import pylab

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pylab.py", line 206, in <module>
    from matplotlib import mpl # pulls in most modules
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl.py", line 2, in <module>
    from matplotlib import axis
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py", line 9, in <module>
    import matplotlib.font_manager as font_manager
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", line 52, in <module>
    from matplotlib import ft2font
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so
  Reason: image not found

Rediscover Hotmail®: Now available on your iPhone or BlackBerry Check it out.

ATT00000 (165 Bytes)

···

From: praxbaffle@...32...
To: numpy-discussion@...177...
Date: Sun, 19 Apr 2009 20:31:32 -0700
Subject: [Numpy-discussion] can't import pylab

_________________________________________________________________
Rediscover Hotmail®: Get quick friend updates right in your inbox.
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates2_042009