[SciPy-User] building scipy

Paul Anton Letnes paul.anton.letnes@gmail....
Wed Mar 9 10:42:48 CST 2011


Hi everyone.

I have built and installed scipy on a system on which I am not the administrator. Using the BLAS and LAPACK environment variables, I was able to install scipy successfully:

env BLAS=$HOME/usr/local/lib/libgoto2.so LAPACK=$HOME/usr/local/lib/libgoto2.so python setup.py install --user

As can be seen from __config__.py below, it seems that scipy somehow knows about this, finds the right folders, and so on. However, when importing scipy, python+scipy is unable to find libgoto2.so. I am able to fix the problem by exporting LD_LIBRARY_PATH to include the BLAS/LAPACK folder, but this seems like a bad way to proceed. More importantly, why doesn't scipy look for LAPACK and BLAS in the folder specified in the __config__.py file?

Cheers,
Paul.


+++++++++++++++
__config__.py
+++++++++++++++
# This file is generated by /gpfs/home/paulanto/src/scipy-0.9.0/setup.py
# It contains system_info results at the time of building this package.
__all__ = ["get_info","show"]

blas_info={'libraries': ['goto2'], 'library_dirs': ['/home/paulanto/usr/local/lib'], 'language': 'f77'}
lapack_info={'libraries': ['goto2'], 'library_dirs': ['/home/paulanto/usr/local/lib'], 'language': 'f77'}
atlas_threads_info={}
blas_opt_info={'libraries': ['goto2'], 'library_dirs': ['/home/paulanto/usr/local/lib'], 'define_macros': [('NO_ATLAS_INFO', 1)], 'language': 'f77'}
umfpack_info={}
atlas_blas_threads_info={}
lapack_opt_info={'libraries': ['goto2', 'goto2'], 'library_dirs': ['/home/paulanto/usr/local/lib'], 'define_macros': [('NO_ATLAS_INFO', 1)], 'language': 'f77'}
atlas_info={}
lapack_mkl_info={}
blas_mkl_info={}
atlas_blas_info={}
mkl_info={}


+++++++++++++++
Test that fails
+++++++++++++++
~ % python -c 'from scipy.linalg.lapack import flapack as lapack'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/paulanto/.local/lib/python2.7/site-packages/scipy/linalg/__init__.py", line 9, in <module>
    from basic import *
  File "/home/paulanto/.local/lib/python2.7/site-packages/scipy/linalg/basic.py", line 14, in <module>
    from lapack import get_lapack_funcs
  File "/home/paulanto/.local/lib/python2.7/site-packages/scipy/linalg/lapack.py", line 14, in <module>
    from scipy.linalg import flapack
ImportError: libgoto2.so: cannot open shared object file: No such file or directory




More information about the SciPy-User mailing list