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 "<stdin>", line 1, in <module>*
* File "demo_axes_divider.py", line 1, in <module>*
* import matplotlib.pyplot as plt*
* File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pyplot.py",
line 23, in <module>*
* 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 <module>*
* 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 <module>*
* import matplotlib.axis as maxis*
* File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py",
line 10, 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):
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@lists.sourceforge.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
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users