[Numpy-discussion] A question about import in numpy and in place build

David Cournapeau david@ar.media.kyoto-u.ac...
Fri Mar 13 00:42:04 CDT 2009


    While making sure in-place builds work, I got the following problem:

python setup.py build_ext -i
python -c "import numpy as np; np.test()"
-> many errors

The error are all import errors:

Traceback (most recent call last):
  File "/usr/media/src/dsp/numpy/git/numpy/tests/test_ctypeslib.py",
line 83, in test_shape
  File "numpy/ctypeslib.py", line 150, in from_param
    return obj.ctypes
  File "numpy/core/__init__.py", line 27, in <module>
    __all__ += numeric.__all__
NameError: name 'numeric' is not defined

Now, in the numpy/core/__init__.py, there are some "from numeric import
*" lines, but no "import numeric". So indeed numeric is not defined. But
why does this work for 'normal' numpy builds ? I want to be sure I don't
introduce some subtle issues before fixing the problem the obvious way,



More information about the Numpy-discussion mailing list