[SciPy-user] ImportError: cannot import name Int8

Wolfgang wollez at gmx.net
Wed Aug 2 13:43:58 CDT 2006


Hi,
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
 >Exit code: 1    Time: 6.503



Robert Kern schrieb:
> Wolfgang wrote:
>> Hi,
>>
>> I've tried to run the test file from two threads above but I only get an 
>> error:
> 
>>    File 
>> "C:\Python24\Lib\site-packages\matplotlib\numerix\_sp_imports.py", line 
>> 1, in ?
>>      from numpy import Int8, UInt8, \
>> ImportError: cannot import name Int8
> 
> Please read
> 
>    http://www.scipy.org/ReleaseNotes/NumPy_1.0
> 
> You will have to update matplotlib to match numpy 1.0b1
> 



More information about the SciPy-user mailing list