[Numpy-discussion] ImportError: libatlas.so: cannot open shared object file: No such file or directory

Jose Borreguero borreguero@gmail....
Thu Mar 17 12:23:04 CDT 2011


Dear Numpy/Scipy users,

I just installed numpy but I have an error when importing
>>> import numpy
....
    from numpy.linalg import lapack_lite
ImportError: libatlas.so: cannot open shared object file: No such file or
directory

I have ATLAS libraries under /usr/local/atlas/lib
libatlas.a   libcblas.a   libf77blas.a   liblapack.a   libptcblas.a
libptf77blas.a
libatlas.so  libcblas.so  libf77blas.so  liblapack.so  libptcblas.so
libptf77blas.so
Aso the header files in  /usr/local/atlas/include

This was my site.cfg file:
[DEFAULT]
library_dirs = /usr/local/atlas/lib
include_dirs = /usr/local/atlas/include
[blas_opt]
libraries = ptf77blas, ptcblas, atlas
[lapack_opt]
libraries = lapack, ptf77blas, ptcblas, atlas

This is the full Traceback:
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line 136,
in <module>
    import add_newdocs
  File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line
9, in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line
13, in <module>
    from polynomial import *
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/polynomial.py",
line 17, in <module>
    from numpy.linalg import eigvals, lstsq
  File "/usr/local/lib/python2.7/site-packages/numpy/linalg/__init__.py",
line 48, in <module>
    from linalg import *
  File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line
23, in <module>
    from numpy.linalg import lapack_lite
ImportError: libatlas.so: cannot open shared object file: No such file or
directory

I don't understand why libatlas.so cannot be found. Please, any comments are
welcomed!

Jose M. Borreguero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20110317/ea17d5bb/attachment.html 


More information about the NumPy-Discussion mailing list