Trouble importing LinearAlgebra
Well, this a problem that is similar to the one discussed in the "Da Blas" thread in September 2000. My first command which works fine is "from Numeric import *". The problem is when I "import * from LinearAlgebra" I get " Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.0/site-packages/Numeric/LinearAlgebra.py", line 8, in ? import lapack_lite ImportError: /usr/lib/liblapack.so.3: undefined symbol: e_wsfe" I'm using Numeric-17.1.2. I installed the lapack and blas rpms for Red Hat 6.2, which I'm running. I edited the setup.py file in the LALITE directory as indicated. I run "python setup_all.py install" which seems to work fine (and I'm clearing out the build directories in between install attempts). "gcc -shared build/temp.linux-i686-2.0/Src/lapack_litemodule.o -lblas -llapack -o build/lib.linux-i686-2.0/lapack_lite.so" which scrolls by after running the setup_all.py script, compiles without errors. After the above failed, I tried manually running g77 in place of gcc (a hint from the "Da Blas" thread) but then instead of the "undefined symbol: e_wsfe" error I just get a seg fault. Any help to get this package installed is much appreciated. --Crag
On Tue, 27 Feb 2001, crag wolfe wrote:
Well, this a problem that is similar to the one discussed in the "Da Blas" thread in September 2000.
My first command which works fine is "from Numeric import *". The problem is when I "import * from LinearAlgebra" I get " Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.0/site-packages/Numeric/LinearAlgebra.py", line 8, in ? import lapack_lite ImportError: /usr/lib/liblapack.so.3: undefined symbol: e_wsfe"
Try adding 'g2c' to the list of libraries. You may just end up with the same problem as linking with g77, but it's worth a shot. [snip] -- Robert Kern kern@caltech.edu "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter
participants (2)
-
crag wolfe
-
Robert Kern