[Numpy-discussion] Import error in builds of 7726
Chris
fonnesbeck@gmail....
Sun Nov 29 18:59:51 CST 2009
Charles R Harris <charlesr.harris <at> gmail.com> writes:
>
> Maybe there is a stray old file floating about somewhere.
Chris, is there a locate command for the mac? Could you track
down numpy related files and make sure none are sitting in some
dusty old corner?Chuck
>
>
Sorry to be a pain on this, but it has me baffled. I just deleted
my entire numpy source tree and pulled it down again. I also tracked
down and deleted anything related to numpy anywhere in my python
path. Now, I used the following script to build numpy:
#!/bin/sh
export MACOSX_DEPLOYMENT_TARGET=10.6
export CFLAGS="-arch x86_64"
#export FFLAGS="-arch i386 -arch x86_64"
export FFLAGS="-arch x86_64"
export LDFLAGS="-Wall -lgfortran -undefined dynamic_lookup
-bundle -arch x86_64"
rm -rf build
python setup.py config -L/Users/chris/Code/freetype
-L/Users/chris/Code/libpng build
python setupegg.py egg_info --tag-date bdist_egg
But, installing the resulting egg, then importing numpy gives:
In [1]: import numpy
------------------------------------------------------------
Traceback (most recent call last):
File "<ipython console>", line 1, in <module>
File "/Library/Python/2.6/site-packages/numpy-1.4.0.dev_
20091130-py2.6-macosx-10.6-universal.egg/numpy/__init__.py",
line 132, in <module>
import add_newdocs
File "/Library/Python/2.6/site-packages/numpy-1.4.0.dev_
20091130-py2.6-macosx-10.6-universal.egg/numpy/add_newdocs.py",
line 9, in <module>
from lib import add_newdoc
File "/Library/Python/2.6/site-packages/numpy-1.4.0.dev_
20091130-py2.6-macosx-10.6-universal.egg/numpy/lib/__init__.py",
line 4, in <module>
from type_check import *
File "/Library/Python/2.6/site-packages/numpy-1.4.0.dev_
20091130-py2.6-macosx-10.6-universal.egg/numpy/lib/type_check.py",
line 8, in <module>
import numpy.core.numeric as _nx
File "/Library/Python/2.6/site-packages/numpy-1.4.0.dev_
20091130-py2.6-macosx-10.6-universal.egg/numpy/core/__init__.py",
line 6, in <module>
import umath
ImportError: dlopen(/Library/Python/2.6/site-packages/
numpy-1.4.0.dev_20091130-py2.6-macosx-10.6-universal.egg/
numpy/core/umath.so, 2): Symbol not found: _npy_cexp
Referenced from: /Library/Python/2.6/site-packages/
numpy-1.4.0.dev_20091130-py2.6-macosx-10.6-universal.egg/
numpy/core/umath.so
Expected in: flat namespace
in /Library/Python/2.6/site-packages/numpy-1.4.0.dev_
20091130-py2.6-macosx-10.6-universal.egg/numpy/core/umath.so
The problem is clearly in the .egg that I just built, as the
filenames match. For some reason umath is not being built properly.
Thanks in advance to everyone.
More information about the NumPy-Discussion
mailing list