[Numpy-discussion] ANN: Numpy 1.6.0 beta 1
Pearu Peterson
pearu.peterson at gmail.com
Thu Mar 24 04:11:50 EDT 2011
On Thu, Mar 24, 2011 at 2:04 AM, Derek Homeier <
derek at astro.physik.uni-goettingen.de> wrote:
> On 24 Mar 2011, at 00:34, Derek Homeier wrote:
>
> > tests with the fink-installed pythons on MacOS X mostly succeeded,
> > with one failure in python2.4 and a couple of issues seemingly
> > related to PPC floating point accuracy, as below:
> >
> Probably last update for tonight: with the 'full' test suite, there's one
> additional failure and error, respectively under 10.5/ppc and
> 10.6/x86_64 (in all Python versions):
>
> PowerPC:
>
> FAIL: test_kind.TestKind.test_all
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/sw/lib/python2.5/site-packages/nose/case.py", line 187, in runTest
> self.test(*self.arg)
> File "/sw/lib/python2.5/site-packages/numpy/f2py/tests/test_kind.py", line
> 30, in test_all
> 'selectedrealkind(%s): expected %r but got %r' % (i,
> selected_real_kind(i), selectedrealkind(i)))
> File "/sw/lib/python2.5/site-packages/numpy/testing/utils.py", line 34, in
> assert_
> raise AssertionError(msg)
> AssertionError: selectedrealkind(16): expected 10 but got 16
>
Regarding this test failure, could you hack the
numpy/f2py/tests/test_kind.py script by adding the following code
for i in range(20):
print '%s -> %s, %s' % (i, selected_real_kind(i), selectedrealkind(i))
and send me the output? Also, what Fortran compiler version has been used to
build the test modules?
> Intel-64bit:
> ERROR: test_assumed_shape.TestAssumedShapeSumExample.test_all
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/sw/lib/python3.2/site-packages/nose/case.py", line 372, in setUp
> try_run(self.inst, ('setup', 'setUp'))
> File "/sw/lib/python3.2/site-packages/nose/util.py", line 478, in try_run
> return func()
> File "/sw/lib/python3.2/site-packages/numpy/f2py/tests/util.py", line 352,
> in setUp
> module_name=self.module_name)
> File "/sw/lib/python3.2/site-packages/numpy/f2py/tests/util.py", line 73,
> in wrapper
> memo[key] = func(*a, **kw)
> File "/sw/lib/python3.2/site-packages/numpy/f2py/tests/util.py", line 134,
> in build_module
> % (cmd[4:], asstr(out)))
> RuntimeError: Running f2py failed: ['-m', '_test_ext_module_5403',
> '/var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpfiy1jn/foo_free.f90',
> '/var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpfiy1jn/foo_use.f90',
> '/var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpfiy1jn/precision.f90']
>
Reading .f2py_f2cmap ...
Mapping "real(kind=rk)" to "double"
Hmm, this should not happen as real(kind=rk) should be mapped to "float".
It seems that you have .f2py_f2cmap file lying around. Could you remove it
and try again.
Pearu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110324/7b430628/attachment.html>
More information about the NumPy-Discussion
mailing list