[SciPy-user] problem building scipy

Robert Kern robert.kern@gmail....
Wed Feb 20 12:27:50 CST 2008


On Mon, Nov 12, 2007 at 3:37 PM, Johann Cohen-Tanugi
<cohen@slac.stanford.edu> wrote:
> I have the current SVN trunk, and I built lapack and ATLAS following the
>  doc in the scipy web site. I also built numpy from SVN.
>  Now when trying toinstall scipy I get :
>  [cohen@localhost scipy-svn]$ su -c 'python setup.py install'
>  Password:
>  Traceback (most recent call last):
>   File "setup.py", line 92, in <module>
>     setup_package()
>   File "setup.py", line 63, in setup_package
>     from numpy.distutils.core import setup
>   File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 43, in
>  <module>
>     import linalg
>   File "/usr/lib/python2.5/site-packages/numpy/linalg/__init__.py", line
>  4, in <module>
>     from linalg import *
>   File "/usr/lib/python2.5/site-packages/numpy/linalg/linalg.py", line
>  25, in <module>
>     from numpy.linalg import lapack_lite
>  ImportError: liblapack.so: cannot open shared object file: No such file
>  or directory
>
>  but I do have this library:
>  [cohen@localhost scipy-svn]$ ls -l /usr/local/lib/liblapack.so
>  lrwxrwxrwx 1 root root 33 2007-11-12 09:29 /usr/local/lib/liblapack.so
>  -> /usr/local/atlas/lib/liblapack.so
>  and it should be in my paths.
>  Moreover, I can issue the offending line without problem:
>  [cohen@localhost scipy-svn]$ ipython
>  Python 2.5 (r25:51908, Oct 19 2007, 09:47:40)
>  Type "copyright", "credits" or "license" for more information.
>
>  IPython 0.8.2.svn.r2848 -- An enhanced Interactive Python.
>  ?         -> Introduction and overview of IPython's features.
>  %quickref -> Quick reference.
>  help      -> Python's own help system.
>  object?   -> Details about 'object'. ?object also works, ?? prints more.
>
>  In [1]: from numpy.linalg import lapack_lite

Are you sure that this is the same numpy as the one being picked up
during the scipy build? Since you are executing the scipy build as
root, you may be getting different numpy packages. In order to see the
path of the numpy package, do this:

In [1]: import numpy

In [2]: numpy
Out[2]: <module 'numpy' from '/Users/rkern/svn/numpy/numpy/__init__.pyc'>

-- 
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