thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

NumPy and matplotlib.pylab on Mac (Trac #2202) #5992

Closed numpy-gitbot closed 12 years ago

numpy-gitbot commented 12 years ago

Original ticket http://projects.scipy.org/numpy/ticket/2202 on 2012-08-14 by trac user Sattelmayer, assigned to unknown.

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 "", line 1, in File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pylab.py", line 221, in 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 from matplotlib import artist File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/artist.py", line 6, in 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 from matplotlib._path import affine_transform ImportError: numpy.core.multiarray failed to import

numpy-gitbot commented 12 years ago

atmention:rgommers wrote on 2012-08-19

The message simply means that the Matplotlib you installed was compiled against a newer Numpy than the one you have installed. Numpy 1.6.2 should have API version 6. So you can install that, or remove Matplotlib and install an older version.

Closing this ticket, since it's not a bug.