[Insight-users] WrapITK test failures (warning: I have no clue what I'm doing)

Adam Williamson awilliamson at mandriva.com
Fri Jan 18 12:47:58 EST 2008


Hi, all.

First, to preface this by a warning, so you know what you're dealing
with: I have only the vaguest notion of what ITK actually is, and no
intention at all of using it. :) Just to make that clear.

Gaeten introduced packages for ITK, WrapITK, and itk-applications to
Mandriva a while ago, but no longer seems to be maintaining them.

I'm currently working on updating all packages with TCL 8.4
dependencies, so we can drop TCL 8.4 from our distribution, and WrapITK
is one package with such a dependency, so I embarked on the cheerfully
suicidal task of trying to rebuild the whole kaboodle. I'm just basing
off Gaeten's existing specs with the minimum necessary modifications to
make the thing work.

I now have a successful build of ITK 3.4.0. I also have a successful
build of CableSwig (using current CVS as the 3.4.0 release fails,
throwing cmake errors; could that be the cause of my problems?), but
when building WrapITK, five of the tests at the test stage fail. Your
starters for ten:

----

  5/ 32 Testing PythonTypemaps                
Test command: /usr/bin/python2.5 /usr/src/rpm/BUILD/WrapITK/build/Python/Tests//pythonTestDriver.py /usr/src/rpm/BUILD/WrapITK/Python/Tests/typemaps.py
Test timeout computed to be: 9.99988e+06
Traceback (most recent call last):
  File "/usr/src/rpm/BUILD/WrapITK/Python/Tests/typemaps.py", line 20, in <module>
    idx1 = itk.Index[2](idx)
  File "/usr/src/rpm/BUILD/WrapITK/build/lib/itkIndex.py", line 97, in __init__
    _swig_setattr(self, itkIndex2, 'this', _itkIndex.new_itkIndex2(*args))
TypeError: new_itkIndex2() takes exactly 0 arguments (1 given)
-- Process completed
***Failed 
  6/ 32 Testing PythonTemplate                
Test command: /usr/bin/python2.5 /usr/src/rpm/BUILD/WrapITK/build/Python/Tests//pythonTestDriver.py /usr/src/rpm/BUILD/WrapITK/Python/Tests/template.py
Test timeout computed to be: 9.99988e+06
Traceback (most recent call last):
  File "/usr/src/rpm/BUILD/WrapITK/Python/Tests/template.py", line 76, in <module>
    assert repr(reader.GetOutput().GetPointer()) == repr(median.GetInput().GetPointer())
  File "/usr/src/rpm/BUILD/WrapITK/build/lib/itkImage.py", line 2740, in <lambda>
    __getattr__ = lambda self, name: _swig_getattr(self, itkImageUS2, name)
  File "/usr/src/rpm/BUILD/WrapITK/build/lib/itkImage.py", line 21, in _swig_getattr
    raise AttributeError,name
AttributeError: GetPointer
-- Process completed
***Failed

----

Anyone know what's wrong here? I hope it's an easy fix: twelve hour long
build processes are not fun :) The answer "oh, don't worry about the
tests, everything's fine!" would also be perfectly acceptable if the
person saying it sounded a) authoritative and b) confident enough ;)

Thanks, all!
-- 
adamw



More information about the Insight-users mailing list