[SciPy-dev] NumPy import problem.
Robert Kern
robert.kern at gmail.com
Fri Jan 6 15:38:34 CST 2006
Charles R Harris wrote:
> If I try to import numpy from python in my home directory I get the
> following error:
>
>>>> from numpy import *
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.3/site-packages/numpy/__init__.py", line 59, in ?
> from core import *
> File "/usr/lib/python2.3/site-packages/numpy/core/__init__.py", line
> 27, in ?
> test = ScipyTest().test
> File "/usr/lib/python2.3/site-packages/numpy/testing/numpytest.py",
> line 210, in __init__
> from numpy.distutils.misc_util import get_frame
> File "/usr/lib/python2.3/site-packages/numpy/distutils/__init__.py",
> line 5, in ?
> import ccompiler
> File "/usr/lib/python2.3/site-packages/numpy/distutils/ccompiler.py",
> line 32, in ?
> CCompiler.spawn = new.instancemethod(CCompiler_spawn,None,CCompiler)
> AttributeError: 'module' object has no attribute 'instancemethod'
Do you have a module named "new" in your home directory?
--
Robert Kern
robert.kern at gmail.com
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Scipy-dev
mailing list