[Numpy-discussion] failure building trunk with mingw
josef.pktd at gmail.com
josef.pktd at gmail.com
Tue Nov 17 10:38:00 EST 2009
On Mon, Nov 16, 2009 at 10:52 PM, David Cournapeau <cournape at gmail.com> wrote:
> On Tue, Nov 17, 2009 at 3:33 AM, <josef.pktd at gmail.com> wrote:
>
>>
>> Now, the numpy build runs for a while then breaks while building umath.
>>
>> Any ideas?
>
> The behavior of distutils with config files is mysterious, I gave up
> trying to understand it long ago :) I use scripts instead to control
> everything from command line.
>
> All those refer to recently added functions, which suggest some old
> files/configuration are used. Be sure to clean the working tree and
> the build directory and try again.
I found the offending old file, checkout tree was clean, but last time I built
scipy, I had copied libnpymath into the python include directory and forgot
to remove it. My mistake.
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.
Current scipy also builds without problems, but tests have 3 errors
and 1 failure which I think are new.
Thanks,
Josef
>
> I have just tested it on both wine and a xp vm with mingw, and both
> build correctly.
>
> cheers,
>
> David
test results:
C:\Josef\work-oth>python -c "import numpy; numpy.test()"
Running unit tests for numpy
NumPy version 1.4.0.dev7746
NumPy is installed in c:\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.......................FF
FF....FF......FF.............FFFF....K......................K.F.................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
..............................................c:\programs\python25\lib\site-pack
ages\numpy\lib\io.py:1324: 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:\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_hypot_special_values(1.#QNAN, 1.#INF)
----------------------------------------------------------------------
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.dev7746.win32\pr
ograms\python25\Lib\site-packages\numpy\core\tests\test_umath.py", line 213, in
assert_hypot_isinf
assert np.isinf(ncu.hypot(x, y))
AssertionError
======================================================================
FAIL: test_umath.test_hypot_special_values(1.#INF, 1.#QNAN)
----------------------------------------------------------------------
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.dev7746.win32\pr
ograms\python25\Lib\site-packages\numpy\core\tests\test_umath.py", line 213, in
assert_hypot_isinf
assert np.isinf(ncu.hypot(x, y))
AssertionError
======================================================================
FAIL: test_umath.test_arctan2_special_values(nan, 2.3561944901923448)
----------------------------------------------------------------------
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 "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 450,
in assert_almost_equal
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
ACTUAL: nan
DESIRED: 2.3561944901923448
======================================================================
FAIL: test_umath.test_arctan2_special_values(nan, -2.3561944901923448)
----------------------------------------------------------------------
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 "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 450,
in assert_almost_equal
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
ACTUAL: nan
DESIRED: -2.3561944901923448
======================================================================
FAIL: test_umath.test_arctan2_special_values(nan, 0.78539816339744828)
----------------------------------------------------------------------
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 "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 450,
in assert_almost_equal
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
ACTUAL: nan
DESIRED: 0.78539816339744828
======================================================================
FAIL: test_umath.test_arctan2_special_values(nan, -0.78539816339744828)
----------------------------------------------------------------------
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 "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 450,
in assert_almost_equal
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
ACTUAL: nan
DESIRED: -0.78539816339744828
======================================================================
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.dev7746.win32\pr
ograms\python25\Lib\site-packages\numpy\core\tests\test_umath.py", line 834, 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.dev7746.win32\pr
ograms\python25\Lib\site-packages\numpy\core\tests\test_umath.py", line 846, in
test_spacing
assert np.spacing(one) == eps
AssertionError
======================================================================
FAIL: test_umath_complex.TestCabs.test_cabs_inf_nan(<ufunc 'absolute'>, 1.#INF,
1.#QNAN, 1.#INF)
----------------------------------------------------------------------
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.dev7746.win32\pr
ograms\python25\Lib\site-packages\numpy\core\tests\test_umath_complex.py", line
437, in check_real_value
assert_equal(f(z1), x)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 247,
in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 676,
in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 586,
in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ NaN])
y: array(1.#INF)
======================================================================
FAIL: test_umath_complex.TestCabs.test_cabs_inf_nan(<ufunc 'absolute'>, -1.#INF,
1.#QNAN, 1.#INF)
----------------------------------------------------------------------
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.dev7746.win32\pr
ograms\python25\Lib\site-packages\numpy\core\tests\test_umath_complex.py", line
437, in check_real_value
assert_equal(f(z1), x)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 247,
in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 676,
in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 586,
in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ NaN])
y: array(1.#INF)
======================================================================
FAIL: test_umath_complex.TestCarg.test_special_values(<ufunc '_arg'>, -1.#INF, 1
.#INF, 2.3561944901923448, False)
----------------------------------------------------------------------
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.dev7746.win32\pr
ograms\python25\Lib\site-packages\numpy\core\tests\test_umath_complex.py", line
439, in check_real_value
assert_almost_equal(f(z1), x)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 440,
in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 764,
in assert_array_almost_equal
header='Arrays are not almost equal')
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 586,
in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ NaN])
y: array(2.3561944901923448)
======================================================================
FAIL: test_umath_complex.TestCarg.test_special_values(<ufunc '_arg'>, -1.#INF, -
1.#INF, -2.3561944901923448, False)
----------------------------------------------------------------------
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.dev7746.win32\pr
ograms\python25\Lib\site-packages\numpy\core\tests\test_umath_complex.py", line
439, in check_real_value
assert_almost_equal(f(z1), x)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 440,
in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 764,
in assert_array_almost_equal
header='Arrays are not almost equal')
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 586,
in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ NaN])
y: array(-2.3561944901923448)
======================================================================
FAIL: test_umath_complex.TestCarg.test_special_values(<ufunc '_arg'>, 1.#INF, 1.
#INF, 0.78539816339744828, False)
----------------------------------------------------------------------
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.dev7746.win32\pr
ograms\python25\Lib\site-packages\numpy\core\tests\test_umath_complex.py", line
439, in check_real_value
assert_almost_equal(f(z1), x)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 440,
in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 764,
in assert_array_almost_equal
header='Arrays are not almost equal')
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 586,
in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ NaN])
y: array(0.78539816339744828)
======================================================================
FAIL: test_umath_complex.TestCarg.test_special_values(<ufunc '_arg'>, 1.#INF, -1
.#INF, -0.78539816339744828, False)
----------------------------------------------------------------------
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.dev7746.win32\pr
ograms\python25\Lib\site-packages\numpy\core\tests\test_umath_complex.py", line
439, in check_real_value
assert_almost_equal(f(z1), x)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 440,
in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg)
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 764,
in assert_array_almost_equal
header='Arrays are not almost equal')
File "\programs\python25\Lib\site-packages\numpy\testing\utils.py", line 586,
in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal
(x and y nan location mismatch [ True], False mismatch)
x: array([ NaN])
y: array(-0.78539816339744828)
======================================================================
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.dev7746.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
"DESIRED: %s\n" % (str(actual), str(desired)))
AssertionError: Items are not equal:
ACTUAL: [ Inf NaNj]
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.dev7746.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
raise AssertionError("Some doctests failed:\n%s" % "\n".join(msg))
AssertionError: Some doctests failed:
**********************************************************************
File "c:\programs\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
----------------------------------------------------------------------
Ran 2338 tests in 17.719s
FAILED (KNOWNFAIL=5, SKIP=1, failures=16)
C:\Josef\work-oth>
More information about the NumPy-Discussion
mailing list