<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 4, 2013 at 7:52 AM, Warren Weckesser <span dir="ltr"><<a href="mailto:warren.weckesser@gmail.com" target="_blank">warren.weckesser@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><div class="im">On Tue, Jun 4, 2013 at 1:20 AM, Tim Burgess <span dir="ltr"><<a href="mailto:tim.burgess@noaa.gov" target="_blank">tim.burgess@noaa.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>On Sat, 2013-06-01 at 20:09 -0400, Warren Weckesser wrote:<br>
<br>
<br>
> I'm using Ubuntu 12.04, so I suspect I won't be the only one who sees<br>
> these.<br>
><br>
</div>gcc on 12.04 (precise) should be 4.6.3<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
See<br>
<a href="http://packages.ubuntu.com/search?keywords=gcc&searchon=names&suite=precise§ion=all" target="_blank">http://packages.ubuntu.com/search?keywords=gcc&searchon=names&suite=precise§ion=all</a><br>
<div><div><br></div></div></blockquote></div><div><br><br><div>Yes, that's what it is. The python from the Anaconda package includes "[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2" in its banner, so I guess Anaconda is built with an even older gcc.<br>
<br></div>If
I build python myself (with ubuntu's gcc 4.6.3), I get the same failure
and two errors that I originally reported. In this case, I used python
3.3.1:<br><br>$ python3 -c "import numpy as np; np.test('full')"<div class="im"><br>Running unit tests for numpy<br></div>NumPy version 1.8.0.dev-e9e490a<br>NumPy is installed in /home/warren/local_numpy/lib/python3.3/site-packages/numpy<br>
Python version 3.3.1 (default, Apr 13 2013, 13:42:07) [GCC 4.6.3]<br>nose version 1.2.1<br><br></div><div><snip><br></div><div><div class="im"><br>======================================================================<br>
ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1, 1000020.0000000099], [0, nan, 1000000.0])<br>
----------------------------------------------------------------------<br>Traceback (most recent call last):<br></div> File "/home/warren/local_py331/lib/python3.3/site-packages/nose-1.2.1-py3.3.egg/nose/case.py", line 198, in runTest<br>
self.test(*self.arg)<br> File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose<div class="im"><br> assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y))<br>
</div>
File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/numeric.py", line 2008, in allclose<div class="im"><br> return all(less_equal(abs(x-y), atol + rtol * abs(y)))<br>RuntimeWarning: invalid value encountered in absolute<br>
<br>======================================================================<br>ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan])<br>----------------------------------------------------------------------<br>
Traceback (most recent call last):<br></div> File "/home/warren/local_py331/lib/python3.3/site-packages/nose-1.2.1-py3.3.egg/nose/case.py", line 198, in runTest<br> self.test(*self.arg)<br> File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/tests/test_numeric.py", line 1253, in tst_isclose_allclose<div class="im">
<br>
assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y))<br></div> File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/numeric.py", line 2008, in allclose<div class="im"><br>
return all(less_equal(abs(x-y), atol + rtol * abs(y)))<br>
RuntimeWarning: invalid value encountered in absolute<br><br>======================================================================<br>FAIL: Test numpy dot with different order C, F<br>----------------------------------------------------------------------<br>
Traceback (most recent call last):<br></div> File "/home/warren/local_py331/lib/python3.3/site-packages/nose-1.2.1-py3.3.egg/nose/case.py", line 198, in runTest<br> self.test(*self.arg)<br> File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/core/tests/test_blasdot.py", line 114, in test_dot_array_order<br>
assert_almost_equal(a.dot(a), a.T.dot(a.T).T, decimal=30)<br> File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/testing/utils.py", line 458, in assert_almost_equal<div class="im"><br> return assert_array_almost_equal(actual, desired, decimal, err_msg)<br>
</div>
File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/testing/utils.py", line 819, in assert_array_almost_equal<div class="im"><br> header=('Arrays are not almost equal to %d decimals' % decimal))<br>
</div> File "/home/warren/local_numpy/lib/python3.3/site-packages/numpy/testing/utils.py", line 652, in assert_array_compare<div class="im"><br>
raise AssertionError(msg)<br>AssertionError: <br>Arrays are not almost equal to 30 decimals<br><br></div>(mismatch 10.0%)<br> x: array([[ 0.60970883, 1.6909554 , -1.0885194 , -1.82058004, -3.95746616,<br> 1.52435604, -0.59853062, -3.72278631, 3.82375941, 5.51367039],<br>
[-3.58154905, -2.0623123 , -0.06567267, 1.47373436, 2.60687462,...<br> y: array([[ 0.60970883, 1.6909554 , -1.0885194 , -1.82058004, -3.95746616,<br> 1.52435604, -0.59853062, -3.72278631, 3.82375941, 5.51367039],<br>
[-3.58154905, -2.0623123 , -0.06567267, 1.47373436, 2.60687462,...<br><br>----------------------------------------------------------------------<br>Ran 5150 tests in 33.772s<br><br>FAILED (KNOWNFAIL=6, SKIP=18, errors=2, failures=1)<span class=""><font color="#888888"><br>
<br><br></font></span></div><span class=""><font color="#888888"><div>Warren<br><br></div></font></span><div class="im"><div></div></div></div></div></div></blockquote><div><br><br></div><div>I created an issue for this: <a href="https://github.com/numpy/numpy/issues/3399">https://github.com/numpy/numpy/issues/3399</a><br>
<br></div><div>Warren<br><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div class="im"><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>
<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org" target="_blank">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</div></div></blockquote></div></div><br></div></div>
</blockquote></div><br></div></div>