[SciPy-dev] libblas.so.3: cannot open shared object file: No such file or directory

Nils Wagner nwagner at mecha.uni-stuttgart.de
Mon Nov 7 06:49:25 EST 2005


Pearu Peterson wrote:
>On Mon, 7 Nov 2005, Nils Wagner wrote:
>
>  
>>I still try to build newscipy without ATLAS...
>>
>>svn/newscipy> /usr/local/bin/python setup.py build
>>Traceback (most recent call last):
>> File "setup.py", line 42, in ?
>>   setup_package()
>> File "setup.py", line 7, in setup_package
>>   from scipy.distutils.core import setup
>> File "/usr/local/lib/python2.4/site-packages/scipy/__init__.py", line
>>32, in ?
>>   from scipy.basic.fft import fft, ifft
>> File "/usr/local/lib/python2.4/site-packages/scipy/basic/fft.py", line
>>22, in ?
>>   from fft_lite import *
>> File "/usr/local/lib/python2.4/site-packages/scipy/basic/fft_lite.py",
>>line 23, in ?
>>   import scipy.lib.fftpack_lite as fftpack
>> File "/usr/local/lib/python2.4/site-packages/scipy/lib/__init__.py",
>>line 9, in ?
>>   import blas
>> File
>>"/usr/local/lib/python2.4/site-packages/scipy/lib/blas/__init__.py",
>>line 9, in ?
>>   import fblas
>>ImportError: libblas.so.3: cannot open shared object file: No such file
>>or directory
>>
>>How can I build libblas.so from libblas.a ?
>>    
>
>You don't need libblas.so. You obviously have failed to follow 
>instructions from
>
>   http://www.scipy.org/documentation/buildatlas4scipy.txt
>
>about building blas and lapack libraries and setting proper environment 
>variables so that scipy build scripts can find them.
>
>Remove everything that you have build or installed and try again.
>
>Pearu
>
>_______________________________________________
>Scipy-dev mailing list
>Scipy-dev at scipy.net
>http://www.scipy.net/mailman/listinfo/scipy-dev
>  
Hi Pearu,

I have removed everything and installed it again.

Now
python -c 'import scipy;scipy.linalg.test()'
results in

======================================================================
ERROR: check_nils (scipy.linalg.matfuncs.test_matfuncs.test_logm)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/linalg/tests/test_matfuncs.py",
line 82, in check_nils
    logm((identity(7)*3.1+0j)-a)
  File
"/usr/local/lib/python2.4/site-packages/scipy/linalg/matfuncs.py", line
232, in logm
    errest = norm(expm(F)-A,1) / norm(A,1)
  File "/usr/local/lib/python2.4/site-packages/scipy/linalg/basic.py",
line 255, in norm
    x = asarray_chkfinite(x)
  File
"/usr/local/lib/python2.4/site-packages/scipy/base/function_base.py",
line 211, in asarray_chkfinite
    raise ValueError, "array must not contain infs or NaNs"
ValueError: array must not contain infs or NaNs

======================================================================
FAIL: check_nils (scipy.linalg.matfuncs.test_matfuncs.test_signm)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/scipy/linalg/tests/test_matfuncs.py",
line 44, in check_nils
    assert_array_almost_equal(r,cr)
  File "/usr/local/lib/python2.4/site-packages/scipy/test/testing.py",
line 735, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [[  1.2104571e+01 -2.3056788e-02j  -1.0034348e+00
-1.8445430e-01j
    1.5239715e+01 +1.1528394e-02j   2.1808571e+01 -2.3...
        Array 2: [[ 11.9493333  -2.2453333  15.3173333  21.6533333 
-2.2453333]
 [ -3.8426667   0.4986667  -4.5906667  -7.1866667   0.498...


----------------------------------------------------------------------
Ran 230 tests in 0.665s

FAILED (failures=1, errors=1)

It looks like a nightmare. :'(

Is valgrind an option to detect the reason for the failure/error ?

Nils




More information about the SciPy-Dev mailing list