[SciPy-User] numpy, scipy, and python 3

R. Padraic Springuel R.Springuel@umit.maine....
Sat Aug 6 17:25:22 CDT 2011


Well, I've successfully built both numpy and scipy for python 3.2.  I've 
also run the nose tests and only come up with one failed test, but it's 
the same test that fails on python 2.7 for me, and doesn't appear to be 
on a function that I've ever used.

For those interested, here's the output on the failed test:
> FAIL: test_expon (test_morestats.TestAnderson)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/stats/tests/test_morestats.py", line 72, in test_expon
>     assert_array_less(crit[:-1], A)
>   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/testing/utils.py", line 869, in assert_array_less
>     header='Arrays are not less-ordered')
>   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/testing/utils.py", line 613, in assert_array_compare
>     chk_same_position(x_id, y_id, hasval='inf')
>   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/testing/utils.py", line 588, in chk_same_position
>     raise AssertionError(msg)
> AssertionError:
> Arrays are not less-ordered
>
> x and y inf location mismatch:
>  x: array([ 0.911,  1.065,  1.325,  1.587])
>  y: array(inf)
>
> ----------------------------------------------------------------------

The results are identical for python 3.2 except "2.7" is replaced by 
"3.2" everywhere that it occurs.
-- 

R. Padraic Springuel, PhD


More information about the SciPy-User mailing list