[SciPy-user] NameError on scipy import

Robert Kern robert.kern at gmail.com
Thu Feb 1 15:41:20 EST 2007


Stephen Uhlhorn wrote:
> I built numpy/scipy on my OS X 10.4 machine following the instructions
> at the scipy.org page.
> 
> I installed ActiveState python 2.4 and had no build errors thru the
> entire process including numpy 1.0.1 and scipy 0.5.2. The post-install
> numpy test passed without error, but importing scipy gave this error:
> 
>>>> import scipy
> Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/__init__.py",
> line 33, in ?
>    del lib
> NameError: name 'lib' is not defined
> 
> Should I update to the latest svn version? Any suggestions?

Double-check that the scipy that is trying to be imported is the same as the one
you thought you installed. There is no line "del lib" in scipy 0.5.2's __init__.py.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco



More information about the SciPy-User mailing list