[SciPy-user] How do I build scipy using standard BLAS/LAPACK

Nils Wagner nwagner at mecha.uni-stuttgart.de
Tue Nov 23 04:02:53 EST 2004


Pearu Peterson wrote:

>
>
> On Tue, 23 Nov 2004, Nils Wagner wrote:
>
>> Now the installation works fine, but scipy.test() failed
>>
>> snip
>>
>> ****************************************************************
>> WARNING: clapack module is empty
>> -----------
>> See scipy/INSTALL.txt for troubleshooting.
>> Notes:
>> * If atlas library is not found by scipy/system_info.py,
>> then scipy uses flapack instead of clapack.
>> ****************************************************************
>>
>> snip
>> ======================================================================
>> ERROR: check_sh_legendre 
>> (scipy.special.basic.test_basic.test_sh_legendre)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>> File 
>> "/usr/lib/python2.3/site-packages/scipy/special/tests/test_basic.py", 
>> line 1806, in check_sh_legendre
>>   Ps1 = sh_legendre(1)
>> File "/usr/lib/python2.3/site-packages/scipy/special/orthogonal.py", 
>> line 593, in sh_legendre
>>   x,w,mu0 = ps_roots(n,mu=1)
>> File "/usr/lib/python2.3/site-packages/scipy/special/orthogonal.py", 
>> line 584, in ps_roots
>>   return js_roots(n,1.0,1.0,mu=mu)
>> File "/usr/lib/python2.3/site-packages/scipy/special/orthogonal.py", 
>> line 205, in js_roots
>>   val = gen_roots_and_weights(n,an_Js,sbn_Js,mu0)
>> File "/usr/lib/python2.3/site-packages/scipy/special/orthogonal.py", 
>> line 121, in gen_roots_and_weights
>>   eig = get_eig_func()
>> File "/usr/lib/python2.3/site-packages/scipy/special/orthogonal.py", 
>> line 91, in get_eig_func
>>   eig = scipy.linalg.eig
>> AttributeError: 'module' object has no attribute 'eig'
>>
>> ----------------------------------------------------------------------
>> Ran 855 tests in 2.121s
>>
>> FAILED (errors=15)
>> <unittest.TextTestRunner object at 0x4353644c>
>
>
> Are you sure that you included all of the stderr messages here?
>
> I just checked, all CVS scipy tests pass ok when using Fortran 
> BLAS/LAPACK libraries.
>
> What is the output of `python system_info.py blas_opt lapack_opt`?


blas_opt_info:
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
Disabled atlas_blas_threads_info (['PTATLAS', 'ATLAS'] is None)
  NOT AVAILABLE

atlas_blas_info:
Disabled atlas_blas_info (ATLAS is None)
  NOT AVAILABLE

/var/tmp/cvs/scipy/scipy_core/scipy_distutils/system_info.py:1036: 
UserWarning:
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    scipy_distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
blas_info:
  FOUND:
    libraries = ['blas']
    library_dirs = ['/usr/lib']
    language = f77

( library_dirs = /usr/local/lib:/usr/lib )
  FOUND:
    libraries = ['blas']
    library_dirs = ['/usr/lib']
    define_macros = [('NO_ATLAS_INFO', 1)]
    language = f77

lapack_opt_info:
atlas_threads_info:
Setting PTATLAS=ATLAS
Disabled atlas_threads_info (['PTATLAS', 'ATLAS'] is None)
system_info.atlas_threads_info
  NOT AVAILABLE

atlas_info:
Disabled atlas_info (ATLAS is None)
system_info.atlas_info
  NOT AVAILABLE

/var/tmp/cvs/scipy/scipy_core/scipy_distutils/system_info.py:964: 
UserWarning:
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    scipy_distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
lapack_info:
  FOUND:
    libraries = ['lapack']
    library_dirs = ['/usr/lib']
    language = f77

( library_dirs = /usr/local/lib:/usr/lib )
  FOUND:
    libraries = ['lapack', 'blas']
    library_dirs = ['/usr/lib']
    define_macros = [('NO_ATLAS_INFO', 1)]
    language = f77

scipy_core/scipy_distutils>

> Is `import scipy.linalg.flapack` succesful?

No

Python 2.3.3 (#1, Apr  6 2004, 01:47:39)
[GCC 3.3.3 (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import scipy.linalg.flapack
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named flapack

Nils

> Pearu
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user



 




More information about the SciPy-User mailing list