[Numpy-discussion] numpy quit working

Kevin Christman kchristman54 at yahoo.com
Wed Jan 16 12:46:01 EST 2008


I've started to use numpy (1.0.4) and matplotlib but it suddenly quit working.  Now when I import a simple test script:
import numpy
numpy.linspace(0,1)

it gives the following error:
>>> 

Traceback (most recent call last):
  File "D:/anothertest.py", line 1, in <module>
    import numpy
  File "C:\Python25\lib\site-packages\numpy\__init__.py", line 37, in <module>
    import testing
  File "C:\Python25\lib\site-packages\numpy\testing\__init__.py", line 3, in <module>
    from numpytest import *
  File "C:\Python25\lib\site-packages\numpy\testing\numpytest.py", line 19, in <module>
    from numpy.distutils.exec_command import splitcmdline
  File "C:\Python25\lib\site-packages\numpy\distutils\__init__.py", line 6, in <module>
    import ccompiler
  File "C:\Python25\lib\site-packages\numpy\distutils\ccompiler.py", line 46, in <module>
    replace_method(CCompiler, 'spawn', CCompiler_spawn)
  File "C:\Python25\lib\site-packages\numpy\distutils\ccompiler.py", line 24, in replace_method
    m = new.instancemethod(func, None, klass)
AttributeError: 'module' object has no attribute 'instancemethod'
>>> 

However, other import statements, like "import time" work ok.
The problem first started when a script would only run if on the root of the drive (e.g. D:\), but now even if I run it from there it doesn't work. What's going on?

Kevin




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 




More information about the NumPy-Discussion mailing list