[SciPy-user] ImportError: cannot import name Int8

Wolfgang wollez at gmx.net
Wed Aug 2 14:16:51 CDT 2006


Hi Travis,

I'm quite new to python, so I don't have much knowledge of all 
dependencies between scipy, mumpy, mumarray, ... and I don't think that 
I'm able to compile full python on my own. Compilling from source seems 
much easier on linux than on win.

Probably it is the best to change to enthought python than picking up 
all packages on my own.

Wolfgang

Wolfgang

Travis Oliphant schrieb:
> Wolfgang wrote:
> 
>> 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
>>  
>>
> 
> 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.
> 
> -Travis



More information about the SciPy-user mailing list