[Numpy-discussion] failure building trunk with mingw

Charles R Harris charlesr.harris at gmail.com
Sun Nov 22 09:45:39 EST 2009


On Sun, Nov 22, 2009 at 6:28 AM, <josef.pktd at gmail.com> wrote:

> On Sun, Nov 22, 2009 at 2:35 AM, David Cournapeau <cournape at gmail.com>
> wrote:
> > On Wed, Nov 18, 2009 at 6:10 PM, David Cournapeau <cournape at gmail.com>
> wrote:
> >> On Wed, Nov 18, 2009 at 12:38 AM,  <josef.pktd at gmail.com> wrote:
> >>
> >>>
> >>> Now numpy builds without problems.
> >>> When I run the tests I get 16 failures mostly nan related. I have no
> idea
> >>> whether they are real or if there is still something screwed up in my
> >>> setup. See below.
> >>
> >> I can reproduce those. I did not see those because they are python 2.5
> >> specific (which is puzzling).
> >
> > I fix most of those, which were related to an atan2 bug in MS C
> > library. Could you test whether this fixes it for you ?
> >
> > David
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion at scipy.org
> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >
>
> Thanks,
>
> I have 4 failures remaining. full ouput below
>
> Josef
>
> >python
> Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import numpy
> >>> numpy.test()
> Running unit tests for numpy
> NumPy version 1.4.0.dev7758
> NumPy is installed in C:\Josef\_progs\Subversion\numpy-trunk\dist\
> numpy-1.4.0.de
> v7758.win32\Programs\Python25\Lib\site-packages\numpy
> Python version 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
> (Int
> el)]
> nose version 0.11.1
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> .......................K.....................................................FF.
>
> ............................K......................K.F..........................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> .....................................C:\Josef\_progs\Subversion\numpy-trunk\dist
>
> \numpy-1.4.0.dev7758.win32\Programs\Python25\Lib\site-packages\numpy\lib\io.py:1
> 324: ConversionWarning: Some errors were detected !
>    Line #2 (got 4 columns instead of 5)
>    Line #12 (got 4 columns instead of 5)
>    Line #22 (got 4 columns instead of 5)
>    Line #32 (got 4 columns instead of 5)
>    Line #42 (got 4 columns instead of 5)
>  warnings.warn(errmsg, ConversionWarning)
>
> .C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Programs\
> Python25\Lib\site-packages\numpy\lib\io.py:1324: ConversionWarning: Some
> errors
> were detected !
>    Line #2 (got 4 columns instead of 2)
>    Line #12 (got 4 columns instead of 2)
>    Line #22 (got 4 columns instead of 2)
>    Line #32 (got 4 columns instead of 2)
>    Line #42 (got 4 columns instead of 2)
>  warnings.warn(errmsg, ConversionWarning)
>
> ..........................................K........K............F...............
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ......S.........................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
>
> ................................................................................
> ...................................................
> ======================================================================
> FAIL: test_umath.test_nextafter
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File
> "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\case.p
> y", line 183, in runTest
>    self.test(*self.arg)
>   File
> "C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Pr
> ograms\Python25\Lib\site-packages\numpy\core\tests\test_umath.py", line
> 851, in
> test_nextafter
>    assert np.nextafter(one, two) - one == eps
> AssertionError
>
> ======================================================================
> FAIL: test_umath.test_spacing
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File
> "c:\programs\python25\lib\site-packages\nose-0.11.1-py2.5.egg\nose\case.p
> y", line 183, in runTest
>    self.test(*self.arg)
>   File
> "C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Pr
> ograms\Python25\Lib\site-packages\numpy\core\tests\test_umath.py", line
> 863, in
> test_spacing
>    assert np.spacing(one) == eps
> AssertionError
>
>
Might be nice to print out the actual values of np.spacing and np.nextafter
here.


> ======================================================================
> FAIL: test_special_values (test_umath_complex.TestClog)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Pr
> ograms\Python25\Lib\site-packages\numpy\core\tests\test_umath_complex.py",
> line
> 179, in test_special_values
>    assert_almost_equal(np.log(x), y)
>   File "\Programs\Python25\Lib\site-packages\numpy\testing\utils.py", line
> 436,
> in assert_almost_equal
> AssertionError: Items are not equal:
> ACTUAL: [ NaN+2.35619449j]
> DESIRED: (1.#INF+2.35619449019j)
>
>
> ======================================================================
> FAIL: test_doctests (test_polynomial.TestDocs)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Pr
> ograms\Python25\Lib\site-packages\numpy\lib\tests\test_polynomial.py", line
> 90,
> in test_doctests
>    return rundocs()
>   File "\Programs\Python25\Lib\site-packages\numpy\testing\utils.py", line
> 952,
> in rundocs
> AssertionError: Some doctests failed:
> **********************************************************************
> File
> "C:\Josef\_progs\Subversion\numpy-trunk\dist\numpy-1.4.0.dev7758.win32\Prog
> rams\Python25\Lib\site-packages\numpy\lib\tests\test_polynomial.py", line
> 20, in
>  test_polynomial
> Failed example:
>    print poly1d([100e-90, 1.234567e-9j+3, -1234.999e8])
> Expected:
>           2
>    1e-88 x + (3 + 1.235e-09j) x - 1.235e+11
> Got:
>            2
>    1e-088 x + (3 + 1.235e-009j) x - 1.235e+011
>
>
>
I don't know what to do about the last, it comes from the poly1d pretty
printing and relies on python for the formatting.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20091122/39bd7b3d/attachment.html>


More information about the NumPy-Discussion mailing list