[SciPy-User] scipy.linalg cannot find OpenBLAS

Eric Hunsberger erichuns@gmail....
Sat Nov 24 09:36:57 CST 2012


I recently compiled my numpy/scipy to use OpenBLAS, and it seemed to be
working fine (i.e., normal numpy functions seem to use it). However, when I
try to import scipy.linalg, I get an error that libopenblas.so.0 cannot be
found:

In [7]: import scipy.linalg as spl
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/media/Data/Dropbox/code/<ipython-input-7-5cf9720f1a27> in <module>()
----> 1 import scipy.linalg as spl

/usr/local/lib/python2.7/dist-packages/scipy/linalg/__init__.py in
<module>()
    131 from linalg_version import linalg_version as __version__
    132
--> 133 from misc import *
    134 from basic import *
    135 from decomp import *

/usr/local/lib/python2.7/dist-packages/scipy/linalg/misc.py in <module>()
      1 import numpy as np
      2 from numpy.linalg import LinAlgError
----> 3 import fblas
      4
      5 __all__ = ['LinAlgError', 'norm']

ImportError: libopenblas.so.0: cannot open shared object file: No such file
or directory


If I use scipy.show_config(), everything seems to be hooked up fine:

In [6]: sp.show_config()
blas_info:
    libraries = ['openblas']
    library_dirs = ['/opt/OpenBLAS/lib']
    language = f77
lapack_info:
    libraries = ['openblas']
    library_dirs = ['/opt/OpenBLAS/lib']
    language = f77
atlas_threads_info:
  NOT AVAILABLE
blas_opt_info:
    libraries = ['openblas']
    library_dirs = ['/opt/OpenBLAS/lib']
    language = f77
    define_macros = [('NO_ATLAS_INFO', 1)]
atlas_blas_threads_info:
  NOT AVAILABLE
umfpack_info:
  NOT AVAILABLE
lapack_opt_info:
    libraries = ['openblas', 'openblas']
    library_dirs = ['/opt/OpenBLAS/lib']
    language = f77
    define_macros = [('NO_ATLAS_INFO', 1)]
atlas_info:
  NOT AVAILABLE
lapack_mkl_info:
  NOT AVAILABLE
blas_mkl_info:
  NOT AVAILABLE
atlas_blas_info:
  NOT AVAILABLE
mkl_info:
  NOT AVAILABLE


Does anyone have any ideas as to why this is happening, or how I can go
about fixing it? Why is scipy.linalg not looking in the same place as scipy
seems to be, and how can I figure out where it is looking?

Best,
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20121124/f26dda2a/attachment-0001.html 


More information about the SciPy-User mailing list