thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

import error with latest numpy (migrated from Trac #790) #1397

Closed thouis closed 12 years ago

thouis commented 12 years ago

Original ticket http://projects.scipy.org/numpy/ticket/790 Reported 2008-05-12 by atmention:chanley, assigned to unknown.

I am unable to import numpy after building from svn. I receive the following error:

In [1]: import numpy
---------------------------------------------------------------------------
<type 'exceptions.ImportError'>           Traceback (most recent call last)

/home/chanley/<ipython console> in <module>()

/user/chanley/dev/site-packages/lib/python/numpy/__init__.py in <module>()
     50     import lib
     51     from lib import *
---> 52     import linalg
     53     import fft
     54     import random

/user/chanley/dev/site-packages/lib/python/numpy/linalg/__init__.py in <module>(
)
      2 from info import __doc__
      3 
----> 4 from linalg import *
      5 
      6 def test(level=1, verbosity=1):

/user/chanley/dev/site-packages/lib/python/numpy/linalg/linalg.py in <module>()
     27         isfinite, size
     28 from numpy.lib import triu
---> 29 from numpy.linalg import lapack_lite
     30 from numpy.core.defmatrix import matrix_power, matrix
     31 

<type 'exceptions.ImportError'>: /user/chanley/dev/site-packages/lib/python/nump
y/linalg/lapack_lite.so: undefined symbol: e_wsfe

This is a RedHat Enterprise system running on a 64-bit processor. The build is from r5157.

This has never been an issue before.

thouis commented 12 years ago

Comment in Trac by atmention:alanmcintyre, 2008-05-14

There's a note about this in the SciPy INSTALL.txt file; I'm not sure how helpful it will be, but here it is:

Using non-GNU Fortran Compiler
------------------------------
If import scipy shows a message
::

  ImportError: undefined symbol: s_wsfe

and you are using non-GNU Fortran compiler, then it means that any of
the (may be system provided) Fortran libraries such as LAPACK or BLAS
were compiled with g77. See also compilers notes above.

Recommended fix: Recompile all Fortran libraries with the same Fortran
compiler and rebuild/reinstall scipy.

Another fix: See `Using non-GNU Fortran compiler with gcc/g77 compiled
Atlas/Lapack libraries` section above.
thouis commented 12 years ago

Comment in Trac by atmention:charris, 2008-05-20

Can you supply more information? What version of RHEL, what compilers, etc.

thouis commented 12 years ago

Comment in Trac by atmention:charris, 2008-05-21

Could you also test the latest version just to be sure?

thouis commented 12 years ago

Comment in Trac by atmention:chanley, 2008-05-21

As of r5211 the problem appears to be resolved.