[SciPy-user] ... object has no attribute 'zgelss'

H Jansen h.jansen at fel.tno.nl
Fri Feb 13 16:08:27 CST 2004


Many Lapack routines can't be found when I do:

import scipy
scipy.test(level=1)

For instance:

======================================================================
ERROR: check_random_complex_exact (test_basic.test_lstsq)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/opt/inst/python/2.3/lib/python2.3/site-packages/scipy/linalg/tests/test_basic.py", 
line 346, in check_random_complex_exact
     x = lstsq(a,b)[0]
   File 
"/opt/inst/python/2.3/lib/python2.3/site-packages/scipy/linalg/basic.py", 
line 281, in lstsq
     gelss, = get_lapack_funcs(('gelss',),(a1,b1))
   File 
"/opt/inst/python/2.3/lib/python2.3/site-packages/scipy/linalg/lapack.py", 
line 55, in get_lapack_funcs
     func = getattr(m2,func_name)
AttributeError: 'module' object has no attribute 'zgelss'

... << more of the same, all related to lapack subroutines >>

When I do "nm liblapack.a | grep zgelss" code for "zgelss_"; likewise 
with all other routines. I'm using ATLAS-3.6.0 and my liblapack is 
complete (appr. 6.8 Mb, routines added from CLAPACK). Apparently,
there's an interface mismatch between ATLAS and scipy 
(SciPy-0.2.0_alpha_200.4161).

The scipy source builts with the command

	python setup.py build build_ext `pkg-config atlas --cflags --libs`

resulting the linalg shared modules to be linked as

	-L/opt/src/math/numerical/matrix/atlas/current/lib/Linux_P4SSE2 
-llapack -lf77blas -lcblas -latlas -lg2c


Some help will be highly appreated! Thanks.

-- Henk


-- 
------------------------------------------------------------------------------
The disclaimer that applies to e-mail from
TNO Physics and Electronics Laboratory
can be found on: http://www.tno.nl/disclaimer/email.html
------------------------------------------------------------------------------



More information about the SciPy-user mailing list