Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

error while trying to import weave

When trying to load the converter form weave i got the following error:

sage: from scipy import weave            
sage: from weave import converters       
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/alex/<ipython console> in <module>()

/opt/sage-4.5.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages/weave/__init__.py in <module>()
     18 except:
     19     pass
     20 
---> 21 from numpy.testing import ScipyTest
     22 test = ScipyTest().test

ImportError: cannot import name ScipyTest

And ...

sage: import weave                       
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/alex/<ipython console> in <module>()

/opt/sage-4.5.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages/weave/__init__.py in <module>()
     18 except:
     19     pass
     20 
---> 21 from numpy.testing import ScipyTest
     22 test = ScipyTest().test

ImportError: cannot import name ScipyTest

What can i do?