[NumPy-Tickets] [NumPy] #2202: NumPy and matplotlib.pylab on Mac

NumPy Trac numpy-tickets@scipy....
Tue Aug 14 06:05:39 CDT 2012


#2202: NumPy and matplotlib.pylab on Mac
-------------------------+--------------------------------------------------
 Reporter:  Sattelmayer  |       Owner:  somebody   
     Type:  enhancement  |      Status:  new        
 Priority:  highest      |   Milestone:  Unscheduled
Component:  numpy.core   |     Version:  1.6.2      
 Keywords:               |  
-------------------------+--------------------------------------------------
 Python does not import pylab from matplotlib:

 RuntimeError: module compiled against API version 6 but this version of
 numpy is 4

 Is there no version of numpy than 4? Even NumPy 1.6. is version 4? Can
 NumPy be updated to 6?

 Details:

 Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
 [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
 ...
 >>> import matplotlib
 >>> from matplotlib import pylab
 RuntimeError: module compiled against API version 6 but this version of
 numpy is 4
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/pylab.py", line 221, in <module>
     from matplotlib import mpl  # pulls in most modules
   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/mpl.py", line 1, in <module>
     from matplotlib import artist
   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/artist.py", line 6, in <module>
     from transforms import Bbox, IdentityTransform, TransformedBbox,
 TransformedPath
   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/matplotlib/transforms.py", line 34, in <module>
     from matplotlib._path import affine_transform
 ImportError: numpy.core.multiarray failed to import
 >>>

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2202>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list