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

Ilan Schnell ischnell@enthought....
Thu Mar 17 12:35:53 CDT 2011


It looks like atlas wasn't linked right.  If you /usr/local/atlas/lib
to your LIBRARY_PATH environment variable it should work.

- Ilan

On Thu, Mar 17, 2011 at 12:23 PM, Jose Borreguero <borreguero@gmail.com> wrote:
> 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
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>


More information about the NumPy-Discussion mailing list