[Numpy-discussion] numpy test failure: "ctypes is not available"
listservs at mac.com
listservs at mac.com
Fri Sep 8 09:20:27 EDT 2006
I have built and installed numpy from svn on an Intel mac, and am
having test failures that do not occur on PPC:
In [8]: numpy.test()
Found 13 tests for numpy.core.umath
Found 8 tests for numpy.lib.arraysetops
Found 3 tests for numpy.fft.helper
Found 1 tests for numpy.lib.ufunclike
Found 4 tests for numpy.ctypeslib
Found 1 tests for numpy.lib.polynomial
Found 8 tests for numpy.core.records
Found 26 tests for numpy.core.numeric
Found 3 tests for numpy.lib.getlimits
Found 31 tests for numpy.core.numerictypes
Found 4 tests for numpy.core.scalarmath
Found 10 tests for numpy.lib.twodim_base
Found 46 tests for numpy.lib.shape_base
Found 4 tests for numpy.lib.index_tricks
Found 32 tests for numpy.linalg.linalg
Found 5 tests for numpy.distutils.misc_util
Found 42 tests for numpy.lib.type_check
Found 163 tests for numpy.core.multiarray
Found 36 tests for numpy.core.ma
Found 10 tests for numpy.core.defmatrix
Found 39 tests for numpy.lib.function_base
Found 0 tests for __main__
.........................EEEE...........................................
........................................................................
........................................................................
........................................................................
........................................................................
........................................................................
.........................................................
======================================================================
ERROR: check_dtype (numpy.tests.test_ctypeslib.test_ndpointer)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numpy/tests/test_ctypeslib.py", line 10, in
check_dtype
p = ndpointer(dtype=dt)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numpy/ctypeslib.py", line 15, in _dummy
raise ImportError, "ctypes is not available."
ImportError: ctypes is not available.
======================================================================
ERROR: check_flags (numpy.tests.test_ctypeslib.test_ndpointer)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numpy/tests/test_ctypeslib.py", line 54, in
check_flags
p = ndpointer(flags='FORTRAN')
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numpy/ctypeslib.py", line 15, in _dummy
raise ImportError, "ctypes is not available."
ImportError: ctypes is not available.
======================================================================
ERROR: check_ndim (numpy.tests.test_ctypeslib.test_ndpointer)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numpy/tests/test_ctypeslib.py", line 36, in
check_ndim
p = ndpointer(ndim=0)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numpy/ctypeslib.py", line 15, in _dummy
raise ImportError, "ctypes is not available."
ImportError: ctypes is not available.
======================================================================
ERROR: check_shape (numpy.tests.test_ctypeslib.test_ndpointer)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numpy/tests/test_ctypeslib.py", line 46, in
check_shape
p = ndpointer(shape=(1,2))
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/numpy/ctypeslib.py", line 15, in _dummy
raise ImportError, "ctypes is not available."
ImportError: ctypes is not available.
----------------------------------------------------------------------
Ran 489 tests in 0.528s
FAILED (errors=4)
Out[8]: <unittest.TextTestRunner object at 0x322fe90>
Any clues?
--
Christopher Fonnesbeck
+ Atlanta, GA
+ fonnesbeck at mac.com
+ Contact me on AOL IM using email address
More information about the NumPy-Discussion
mailing list