[Numpy-discussion] Numpy on Mac OS X python 2.6

David Cournapeau cournape at gmail.com
Mon Nov 24 22:18:17 EST 2008


Hi,

Following the discussion on python 2.6 support for numpy, I tried last
svn on mac os X, and I get a number of failures which I don't
understand, which seem to be linked to dtype code, more exactly to
endianness:


======================================================================
FAIL: test_basic (test_multiarray.TestClip)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/david/pylocal/lib/python2.6/site-packages/numpy/core/tests/test_multiarray.py",
line 677, in test_basic
    self._clip_type('float',1024,-12.8,100.2, inplace=inplace)
  File "/Users/david/pylocal/lib/python2.6/site-packages/numpy/core/tests/test_multiarray.py",
line 671, in _clip_type
    assert_equal(x.dtype.byteorder,byteorder)
  File "/Users/david/pylocal/lib/python2.6/site-packages/numpy/testing/utils.py",
line 183, in assert_equal
    raise AssertionError(msg)
AssertionError:
Items are not equal:
 ACTUAL: '>'
 DESIRED: '='

======================================================================
FAIL: test_binary (test_multiarray.TestFromstring)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/david/pylocal/lib/python2.6/site-packages/numpy/core/tests/test_multiarray.py",
line 120, in test_binary
    assert_array_equal(a, array([1,2,3,4]))
  File "/Users/david/pylocal/lib/python2.6/site-packages/numpy/testing/utils.py",
line 303, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/Users/david/pylocal/lib/python2.6/site-packages/numpy/testing/utils.py",
line 295, in assert_array_compare
    raise AssertionError(msg)
AssertionError:
Arrays are not equal

(mismatch 100.0%)
 x: array([  4.60060299e-41,   8.96831017e-44,   2.30485571e-41,
         4.60074312e-41], dtype=float32)
 y: array([1, 2, 3, 4])

...

http://scipy.org/scipy/numpy/ticket/958

Does anyone have a clue about where to look at ? I am wondering why it
only appears on Mac OS X,

David



More information about the NumPy-Discussion mailing list