472,364 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,364 software developers and data experts.

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 2505

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Hunter | last post by:
matplotlib is a 2D plotting package for python with a matlab compatible syntax and output tested under linux and windows platforms. matplotlib-0.30 is available for download at...
3
by: John Hunter | last post by:
matplotlib is a 2D plotting library for python. You can use matplotlib interactively from a python shell or IDE, or embed it in GUI applications (WX, GTK, and Tkinter). matplotlib supports many...
2
by: Grant Edwards | last post by:
I downloaded examples/contour_demo.py, and it doesn't run. I've searched both the user guide and the Wiki for "contour" and got zero hits. ...
0
by: ehenlin | last post by:
Hi, How to make pylab work together with py2exe? Have anyone managed to build a stand alone exe with pylab package? I have made a small test script but that does not work. setup.py...
0
by: Soren | last post by:
Hi, I've been trying to embed matplotlib in wxpython. I want to be able to put a figure (axes) in a wx.Panel and place it somewhere in my GUI. The GUI should have other panels with buttons etc....
4
by: Bill Jackson | last post by:
Hi, I'm having some trouble plotting with the following matplotlibrc: text.usetex : True I tried clearing the cache files under ~/.matplotlib, but this did not help the problem. I'd post...
3
by: vajratkarviraj | last post by:
i hav python2.5, matplotlib0.90.1, and py2exe for python 2.5 all on windows xp... i hav a python program(letsc.py) which uses the matplotlib package... and i want 2 make an exe of it for distribution...
4
by: John Henry | last post by:
Has anybody been able to create an exe of their python applications involving matplotlib using pyinstall (ver 1.3)? I am getting a: RuntimeError: Could not find the matplotlib data files when...
0
by: PamMish1982 | last post by:
Hi all, I have recently started using Python and I am trying to make a GUI out of Tkinter. I am using matplotlib for the graphic purposes. I have to make a exe file from this code. I use py2exe...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.