Undefined symbol problems (flapack/min and clapack/clapack_sgetri)
Hi all, I'm trying to install the SciPy-0.2.0_alpha_144.4350_src.tar.gz to bring my scipy installation up to date. I successfully installed it but I'm getting two import errors: In [1]: import scipy.linalg.flapack --------------------------------------------------------------------------- ImportError Traceback (most recent call last) ? ImportError: /usr/lib/python2.2/site-packages/scipy/linalg/flapack.so: undefined symbol: min In [2]: import scipy.linalg.clapack --------------------------------------------------------------------------- ImportError Traceback (most recent call last) ? ImportError: /usr/lib/python2.2/site-packages/scipy/linalg/clapack.so: undefined symbol: clapack_sgetri Any ideas? For the second problem, I read the instructions in INSTALL.txt and followed the suggested steps: Using ATLAS 3.2.1 ----------------- If import clapack fails with the following error ImportError: .../clapack.so : undefined symbol: clapack_sgetri then you most probably have ATLAS 3.2.1 but linalg module was built for newer versions of ATLAS. Fix: 1) Remove scipy/linalg/clapack.pyf 2) Rebuild/reinstall scipy. But this doesn't seem to fix anything (the clapack.pyf file is automatically recreated and the problem persists). I have ATLAS installed, this is the full output of system_info: root[scipy_distutils]# python system_info.py atlas_info: FOUND: libraries = ['lapack', 'f77blas', 'cblas', 'atlas'] library_dirs = ['/usr/local/lib/atlas'] include_dirs = ['/usr/local/include/atlas'] blas_info: NOT AVAILABLE blas_src_info: NOT AVAILABLE dfftw_info: NOT AVAILABLE dfftw_threads_info: NOT AVAILABLE djbfft_info: NOT AVAILABLE fftw_info: NOT AVAILABLE fftw_threads_info: NOT AVAILABLE lapack_info: NOT AVAILABLE lapack_src_info: NOT AVAILABLE sfftw_info: NOT AVAILABLE sfftw_threads_info: NOT AVAILABLE x11_info: FOUND: libraries = ['X11'] library_dirs = ['/usr/X11R6/lib'] include_dirs = ['/usr/X11R6/include'] My system is a Mandrake 8.2 box. Any help would be greatly appreciated. Cheers, f.
On Tuesday 17 December 2002 01:20, you wrote: Hi Fernando, 1. You have to complete the lapack library under /usr/local/lib/atlas. I think in this directory liblapack.a has a size of about 3MB. It should be around 6MB. The best is to install the original lapack library from netlib.org. I think the lapack package from your linux distribution may be is also good. 2. Now you have to complete the atlas lapack library with the original lapack library. See instruction under http://math-atlas.sourceforge.net/errata.html#completelp 3. I had the same problem like you. I just modify setup.py in the Numeric package and say 'Numeric' where your lapack, blas and g2c libraries are and rebuild it. for instance: libraries = ['lapack',blas,'g2c'] libraries_dirs= ['/usr/lib',/usr/local/lib','/usr/local/lib/atlas',/usr/lib/gcc-lib/i486-suse-linux/2.95.3'] I hope this helps you a little bit Greetings, Stefan
Hi all,
I'm trying to install the SciPy-0.2.0_alpha_144.4350_src.tar.gz to bring my scipy installation up to date. I successfully installed it but I'm getting two import errors:
In [1]: import scipy.linalg.flapack --------------------------------------------------------------------------- ImportError Traceback (most recent call last)
?
ImportError: /usr/lib/python2.2/site-packages/scipy/linalg/flapack.so: undefined symbol: min
In [2]: import scipy.linalg.clapack --------------------------------------------------------------------------- ImportError Traceback (most recent call last)
?
ImportError: /usr/lib/python2.2/site-packages/scipy/linalg/clapack.so: undefined symbol: clapack_sgetri
Any ideas?
For the second problem, I read the instructions in INSTALL.txt and followed the suggested steps:
Using ATLAS 3.2.1 ----------------- If import clapack fails with the following error
ImportError: .../clapack.so : undefined symbol: clapack_sgetri
then you most probably have ATLAS 3.2.1 but linalg module was built for newer versions of ATLAS. Fix: 1) Remove scipy/linalg/clapack.pyf 2) Rebuild/reinstall scipy.
But this doesn't seem to fix anything (the clapack.pyf file is automatically recreated and the problem persists).
I have ATLAS installed, this is the full output of system_info:
root[scipy_distutils]# python system_info.py atlas_info: FOUND: libraries = ['lapack', 'f77blas', 'cblas', 'atlas'] library_dirs = ['/usr/local/lib/atlas'] include_dirs = ['/usr/local/include/atlas']
blas_info: NOT AVAILABLE
blas_src_info: NOT AVAILABLE
dfftw_info: NOT AVAILABLE
dfftw_threads_info: NOT AVAILABLE
djbfft_info: NOT AVAILABLE
fftw_info: NOT AVAILABLE
fftw_threads_info: NOT AVAILABLE
lapack_info: NOT AVAILABLE
lapack_src_info: NOT AVAILABLE
sfftw_info: NOT AVAILABLE
sfftw_threads_info: NOT AVAILABLE
x11_info: FOUND: libraries = ['X11'] library_dirs = ['/usr/X11R6/lib'] include_dirs = ['/usr/X11R6/include']
My system is a Mandrake 8.2 box. Any help would be greatly appreciated.
Cheers,
f.
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
On Mon, 16 Dec 2002, Fernando Perez wrote:
Hi all,
I'm trying to install the SciPy-0.2.0_alpha_144.4350_src.tar.gz to bring my scipy installation up to date. I successfully installed it but I'm getting two import errors:
In [1]: import scipy.linalg.flapack --------------------------------------------------------------------------- ImportError Traceback (most recent call last)
?
ImportError: /usr/lib/python2.2/site-packages/scipy/linalg/flapack.so: undefined symbol: min
I recently fixed this one in SciPy CVS. See http://www.scipy.org/site_content/remap?rmurl=http%3A//scipy.net/cgi-bin/vie... for diff.
In [2]: import scipy.linalg.clapack --------------------------------------------------------------------------- ImportError Traceback (most recent call last)
?
ImportError: /usr/lib/python2.2/site-packages/scipy/linalg/clapack.so: undefined symbol: clapack_sgetri
Any ideas?
Try ldd on clapack.so, see if it picks up the right atlas libraries. Pearu
On Tue, 17 Dec 2002, Pearu Peterson wrote:
On Mon, 16 Dec 2002, Fernando Perez wrote:
Hi all,
I'm trying to install the SciPy-0.2.0_alpha_144.4350_src.tar.gz to bring my scipy installation up to date. I successfully installed it but I'm getting two import errors:
In [1]: import scipy.linalg.flapack
ImportError: /usr/lib/python2.2/site-packages/scipy/linalg/flapack.so: undefined symbol: min
I recently fixed this one in SciPy CVS. See
http://www.scipy.org/site_content/remap?rmurl=http%3A//scipy.net/cgi-bin/vie...
for diff.
In [2]: import scipy.linalg.clapack ImportError: /usr/lib/python2.2/site-packages/scipy/linalg/clapack.so: undefined symbol: clapack_sgetri
Thanks! Using SciPy from CVS cured both problems. I'd forgotten that with Scipy's current state of constant evolution, it's really not a good idea to rely on outdated tarballs. Best regards, Fernando.
participants (3)
-
Fernando Perez -
Pearu Peterson -
Stefan Mogck