Hi,
I am trying to install matplotlib on Mac Os 10.6.x without any success.
I am on Snow Leopard w/ g++ --version i686-apple-darwin10-g+±4.2.1 (GCC) 4.2.1
I am following the steps described below:
http://sites.google.com/site/michaelsafyan/setup-guide/mac-os-x-10-6-snow-leopard
see Python_Setup*.*
So, I install Python 2.6.6 since NumPy and SciPy and do not comply with newer Python 2.7.x releases.
I test NumPy 1.5.1rc1 and SciPy 0.8.0 and the configuration is OK for both (I get only a few failures
after using python -c ‘import numpy; numpy.test()’ & python -c ‘import scipy; scipy.test()’
respectively).
When I am trying to install matplotlib 1.0.0, I get the following warnings
*/usr/include/AvailabilityMacros.h:108:14: *
warning: #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid.
but it compiles. However, when I test matplotlib 1.0.0 with a trivial module
>>> import demo_axes_divider.py
I get
traceback (most recent call last):
-
File “”, line 1, in *
-
File “demo_axes_divider.py”, line 1, in *
-
import matplotlib.pyplot as plt*
-
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pyplot.py”, line 23, in *
-
from matplotlib.figure import Figure, figaspect*
-
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/figure.py”, line 18, in *
-
from axes import Axes, SubplotBase, subplot_class_factory*
-
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py”, line 14, in *
-
import matplotlib.axis as maxis*
-
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py”, line 10, in *
-
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 *
-
from matplotlib import ft2font*
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so, 2):
Symbol not found: _FT_Attach_File
-
Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/ft2font.so*
-
Expected in: dynamic lookup*
It turns out that Freetype2 feature is a required dependency for matplotlib.
I install FontForge via macports (http://openfontlibrary.org/wiki/How_to_install_FontForge)
so that Freetype2 is enabled.
Now I clean-up and re-install everything from scratch as mentioned here
http://www.mail-archive.com/matplotlib-users@…1753…forge.net/msg17448.html ,
but the problem persists (also that user does not seem to have resolved the issue).
So, any hints on what’s wrong?
Many thanks!
N