469,957 Members | 2,676 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,957 developers. It's quick & easy.

problems with matplotlib on mac os x

hi all

i have to use matplotlib on mac os x. on the official site of
matplotlib, i found a link to precompiled python packages for mac os x:

http://pythonmac.org/packages/py24-fat/index.html

so first, i installed python 2.4. that works great! if i type 'python'
in the terminal, it loads python 2.4.
after that, i loaded and installed the matplotlib package from this
site. if i type in python 'import matplotlib' no error appiers. so far,
so well...

so i went back to the tutorial page of matplotlib to crab a test... but
they use overall 'import pylab'. witch doesn't work in my python... so
i went back to the packages site again, loaded and installed numpy. now
hurray, python can do something with 'import pylab', but:

Expand|Select|Wrap|Line Numbers
  1.         
  2.                         
  3.                         
  4.                 >>import pylab
  5.  
  6. RuntimeError: module compiled against version 1000009 of C-API but this
  7. version of numpy is 1000002
  8.  
  9. The import of the numpy version of the _transforms module,
  10. _ns_transforms, failed.  This is is either because numpy was
  11. unavailable when matplotlib was compiled, because a dependency of
  12. _ns_transforms could not be satisfied, or because the build flag for
  13. this module was turned off in setup.py.  If it appears that
  14. _ns_transforms was not built, make sure you have a working copy of
  15. numpy and then re-install matplotlib. Otherwise, the following
  16. traceback gives more details:
  17.  
  18. Traceback (most recent call last):
  19. File "<stdin>", line 1, in ?
  20. File
  21. "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/pylab.py",
  22. line 1, in ?
  23. from matplotlib.pylab import *
  24. File
  25. "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py",
  26. line 201, in ?
  27. from axes import Axes, PolarAxes
  28. File
  29. "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py",
  30. line 14, in ?
  31. from artist import Artist, setp
  32. File
  33. "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/artist.py",
  34. line 4, in ?
  35. from transforms import identity_transform
  36. File
  37. "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/transforms.py",
  38. line 223, in ?
  39. from _transforms import Value, Point, Interval, Bbox, Affine
  40. File
  41. "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/_transforms.py",
  42. line 17, in ?
  43. from matplotlib._ns_transforms import *
  44. ImportError: numpy.core.multiarray failed to import
  45.  
The error tells me, i have to install the packages in right order. so i
did it again:

1. numarray
2. numpy
3. matplotlib

But after that, the same error message appiers. i was never so near
that it will works :(
Can anybody help me?

Big thanks!
spross

Nov 3 '06 #1
0 2388

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by John Hunter | last post: by
3 posts views Thread by John Hunter | last post: by
2 posts views Thread by Grant Edwards | last post: by
reply views Thread by ehenlin | last post: by
reply views Thread by Soren | last post: by
4 posts views Thread by Bill Jackson | last post: by
4 posts views Thread by John Henry | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.