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

Nils Wagner nwagner at mecha.uni-stuttgart.de
Tue Nov 23 02:03:27 CST 2004


Pearu Peterson wrote:

>
>
> On Mon, 22 Nov 2004, Nils Wagner wrote:
>
>> Following the notes
>> http://www.scipy.org/documentation/buildscipy.txt
>> Or get LAPACK/BLAS sources as follows:
>>
>> gives
>>
>> Traceback (most recent call last):
>>  File "setup.py", line 112, in ?
>>    setup_package(ignore_packages)
>>  File "setup.py", line 99, in setup_package
>>    url = "http://www.scipy.org",
>>  File "scipy_core/scipy_distutils/core.py", line 73, in setup
>>    return old_setup(**new_attr)
>>  File "/usr/local/lib/python2.3/distutils/core.py", line 149, in setup
>>    dist.run_commands()
>>  File "/usr/local/lib/python2.3/distutils/dist.py", line 907, in 
>> run_commands
>>    self.run_command(cmd)
>>  File "/usr/local/lib/python2.3/distutils/dist.py", line 927, in 
>> run_command
>>    cmd_obj.run()
>>  File "/usr/local/lib/python2.3/distutils/command/build.py", line 
>> 107, in run
>>    self.run_command(cmd_name)
>>  File "/usr/local/lib/python2.3/distutils/cmd.py", line 333, in 
>> run_command
>>    self.distribution.run_command(command)
>>  File "/usr/local/lib/python2.3/distutils/dist.py", line 927, in 
>> run_command
>>    cmd_obj.run()
>>  File "scipy_core/scipy_distutils/command/build_src.py", line 81, in run
>>    self.build_sources()
>>  File "scipy_core/scipy_distutils/command/build_src.py", line 88, in 
>> build_sour
>> ces
>>    self.build_extension_sources(ext)
>>  File "scipy_core/scipy_distutils/command/build_src.py", line 122, in 
>> build_ext
>> ension_sources
>>    sources = self.generate_sources(sources, ext)
>>  File "scipy_core/scipy_distutils/command/build_src.py", line 164, in 
>> generate_
>> sources
>>    source = func(extension, build_dir)
>>  File "Lib/lib/lapack/setup_lapack.py", line 87, in get_clapack_source
>>    target = join(build_dir,target_dir,'clapack.pyf')
>> NameError: global name 'join' is not defined
>> nwagner at linux:~/cvs/scipy> echo $LAPACK_SRC
>> /home/nwagner/src/lapack/LAPACK/SRC
>> nwagner at linux:~/cvs/scipy> echo $BLAS_SRC
>> /home/nwagner/src/blas
>> nwagner at linux:~/cvs/scipy> echo $ATLAS
>> None
>>
>> Any suggestion how to continue ?
>
>
> This is now fixed in scipy CVS. Update from cvs and try again.
>
> Pearu
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user


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>

Nils


 




More information about the SciPy-user mailing list