Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error with latest numpy (Trac #790) #1388

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 4 comments
Closed

import error with latest numpy (Trac #790) #1388

numpy-gitbot opened this issue Oct 19, 2012 · 4 comments

Comments

@numpy-gitbot
Copy link

Original ticket http://projects.scipy.org/numpy/ticket/790 on 2008-05-12 by @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.

@numpy-gitbot
Copy link
Author

@alanmcintyre wrote on 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.

@numpy-gitbot
Copy link
Author

@charris wrote on 2008-05-20

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

@numpy-gitbot
Copy link
Author

@charris wrote on 2008-05-21

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

@numpy-gitbot
Copy link
Author

@chanley wrote on 2008-05-21

As of r5211 the problem appears to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant