[SciPy-User] [SciPy-user] NameError: name 'common' is not defined Scipy 10.0

Bruce Southey bsouthey at gmail.com
Fri Dec 2 12:45:06 EST 2011


On 12/02/2011 03:04 AM, LLCB wrote:
> Hi,
>
> I have installed scipy 10.0 and numpy 1.5.1 on RHEL5.
> When I run a script, I got the following error:
>
> File "/home/cbl/Research/code/closer/closerv2/closerv2source/getcenter.py",
> line 5, in<module>
>      from scipy.optimize import leastsq
>    File "/usr/lib64/python2.6/site-packages/scipy/optimize/__init__.py", line
> 135, in<module>
>      from nonlin import *
>    File "/usr/lib64/python2.6/site-packages/scipy/optimize/nonlin.py", line
> 116, in<module>
>      from scipy.linalg import norm, solve, inv, qr, svd, lstsq, LinAlgError
>    File "/usr/lib64/python2.6/site-packages/scipy/linalg/__init__.py", line
> 120, in<module>
>      from decomp_qr import *
>    File "/usr/lib64/python2.6/site-packages/scipy/linalg/decomp_qr.py", line
> 7, in<module>
>      import special_matrices
>    File
> "/usr/lib64/python2.6/site-packages/scipy/linalg/special_matrices.py", line
> 4, in<module>
>      from scipy.misc import comb
>    File "/usr/lib64/python2.6/site-packages/scipy/misc/__init__.py", line 22,
> in<module>
>      __all__ += common.__all__
> NameError: name 'common' is not defined
>
> It works in my other Ubuntu workstation with an older version of numpy and
> scipy.
>
> Any help is greatly appreciated!
>
>
>
Your scipy installation may not be correct so I would suggest 
reinstalling the existing scipy. Just make sure that 
/usr/lib64/python2.6/site-packages/scipy is gone or at least totally 
empty before you do actually installation.

Also:
If you installed a scipy package then make sure you got all the correct 
packages for your system.
If you built it from source then first make sure to clean out your build 
directory.


Bruce







More information about the SciPy-User mailing list