[SciPy-user] ImportError: cannot import name Int8

Travis Oliphant oliphant at ee.byu.edu
Wed Aug 2 14:03:34 CDT 2006

Wolfgang wrote:

>Updating matplotlib to 0.87.4 results in:
>Traceback (most recent call last):
>   File "test_det.py", line 7, in ?
>     from pylab import plot, show, subplot, legend, xlim, ylim, xlabel, 
>ylabel, scatter, figure, semilogy, title, pcolor, contour, cm, fill, 
>contourf, cm, colorbar, savefig
>   File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ?
>     from matplotlib.pylab import *
>   File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 200, in ?
>     from axes import Axes, PolarAxes
>   File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 23, in ?
>     from contour import ContourSet
>   File "C:\Python24\Lib\site-packages\matplotlib\contour.py", line 18, in ?
>     import _contour
>   File "C:\Python24\Lib\site-packages\matplotlib\_contour.py", line 17, 
>in ?
>     from matplotlib._ns_cntr import *
>RuntimeError: module compiled against version 90709 of C-API but this 
>version of numpy is 1000000

Is this error not clear enough?    Suggested wording appreciated.

When the C-API of NumPy changes, extension modules which use the NumPy 
C-API (like those in matplotlib) must be re-compiled.  You cannot just 
download a binary version of matplotlib and expect it to work with all 
releases of NumPy.  

A new binary of matplotlib needs to be made for version 1.0 of NumPy.


More information about the SciPy-user mailing list