[Pkg-exppsy-pynifti] problems with unittests on gentoo

Valentin Haenel valentin.haenel at gmx.de
Tue Nov 24 21:28:55 UTC 2009


Hi,

System: Gentoo 
Kernel:
Linux creche 2.6.29-gentoo-r5 #2 SMP PREEMPT Thu Oct 22 17:45:59 CEST 2009
x86_64 Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz GenuineIntel GNU/Linux
Python 2.6.2

Using git checkout commit: 9fda275d50cb23ada4e
Not using nifti clib can't find a gentoo ebuild for it.

I compiled using:
  make
  python setup.py build

Testing with:
  make test

Got two errors - see below.

What additional information do you need?

V-


esc at creche ~/git-working/pynifti (git)-[master] % make test
/home/esc/git-working/pynifti/tests/test_fileio.py:19: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
E.....................E...
======================================================================
ERROR: testArrayAssign (test_fileio.FileIOTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/esc/git-working/pynifti/tests/test_fileio.py", line 335, in testArrayAssign
    self.nimg.data = alt_array
  File "/home/esc/git-working/pynifti/nifti/image.py", line 354, in setDataArray
    self._updateNimgFromArray(data)
  File "/home/esc/git-working/pynifti/nifti/format.py", line 398, in _updateNimgFromArray
    dim[i+1] = target_dim[i]
TypeError: in method 'intArray___setitem__', argument 3 of type 'int'

======================================================================
ERROR: Test whether the header is updated correctly when assigning a new
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/esc/git-working/pynifti/tests/test_misc.py", line 48, in testArrayAssign
    nimg.data = alt_array
  File "/home/esc/git-working/pynifti/nifti/image.py", line 354, in setDataArray
    self._updateNimgFromArray(data)
  File "/home/esc/git-working/pynifti/nifti/format.py", line 398, in _updateNimgFromArray
    dim[i+1] = target_dim[i]
TypeError: in method 'intArray___setitem__', argument 3 of type 'int'

----------------------------------------------------------------------
Ran 26 tests in 2.521s

FAILED (errors=2)
/bin/sh: nosetests: command not found
make: *** [testdoc] Error 127




More information about the Pkg-exppsy-pynifti mailing list