[Insight-users] All python tests fail
Marco Nolden
m.nolden at dkfz-heidelberg.de
Wed Nov 28 13:16:42 EST 2007
Gaëtan Lehmann wrote:
>
> Hi Marco,
Hi Gaëtan,
>
> It seem that you have used both WrapITK and ITK_CSWIG_PYTHON. I don't
> think that this combination has been tested.
> You should try to set ITK_CSWIG_PYTHON to OFF, to disable the older
> wrapping method.
>
thanks for the hint. Just turning ITK_CSWIG_PYTHON to OFF didn't help.
After that "make" just didn't do anything. So I set up a new build and
the (better) result is here:
http://www.itk.org/Testing/Sites/mbi056/Linux-c++/20071128-0957-Experimental/Test.html
> Please let us know if it fix the problem, so we can add an error during
> the configuration process if the user have turned on the two wrapping
> process.
>
As you can see it fixes the problem only partially.
I also tried to execute
the PythonMedianImageFilter
(http://www.itk.org/Testing/Sites/mbi056/Linux-c++/20071128-0957-Experimental/Results/__Wrapping_WrapITK_Python_Tests_PythonMedianImageFilter.html)
test without the itkTestDriver by setting PYTHONPATH and executing
/usr/bin/python
/local/nolden/itk-3.4.0/InsightToolkit-3.4.0/Wrapping/WrapITK/Python/Tests/MedianImageFilter.py
/local/nolden/itk-3.4.0/InsightToolkit-3.4.0/Wrapping/WrapITK/images/cthead1.png
MedianImageFilter.png 3
This results in a segmentation fault, stacktrace didn't provide much
information, but I can send it/post it, if you like.
Marco
> Regards,
>
> Gaëtan
>
>
> Le 27 nov. 07 à 21:00, Marco Nolden a écrit :
>
>> Hi all,
>>
>> I can't get the python wrapping to work on a 32bit Ubuntu 7.10 linux.
>> I use the ITK 3.4 release and put a cable swig CVS checkout in the
>> Utilities directory. I have posted my results to the ITK dashboard:
>>
>> http://www.itk.org/Testing/Sites/mbi056/Linux-c++/20071127-1417-Experimental/Test.html
>>
>>
>> First kind of error is:
>> Traceback (most recent call last):
>> File
>> "/local/nolden/itk-3.4.0/InsightToolkit-3.4.0/Examples/Filtering/BinaryErodeImageFilter.py",
>> line 5, in from InsightToolkit import * ImportError: No module named
>> InsightToolkit
>>
>> I can fix this by manipulating the python path, but I can't fix the
>> second kind:
>>
>> Loading VXLNumerics...Traceback (most recent call last): File
>> "/local/nolden/itk-3.4.0/InsightToolkit-3.4.0/Wrapping/WrapITK/Python/Tests/BinaryErodeImageFilter.py",
>> line 10, in IType = itk.Image[itk.US, dim] File
>> "/local/nolden/itk-bin/Wrapping/WrapITK/Python/itkLazy.py", line 18,
>> in __getattribute__ itkBase.LoadModule(module, namespace) File
>> "/local/nolden/itk-bin/Wrapping/WrapITK/Python/itkBase.py", line 77,
>> in LoadModule LoadModule(dep, namespace) File
>> "/local/nolden/itk-bin/Wrapping/WrapITK/Python/itkBase.py", line 85,
>> in LoadModule if not swigModuleName in sys.modules: module =
>> loader.load(swigModuleName) File
>> "/local/nolden/itk-bin/Wrapping/WrapITK/Python/itkBase.py", line 192,
>> in load return imp.load_module(name, fp, pathname, description) File
>> "/local/nolden/itk-bin/bin/VXLNumericsPython.py", line 33, in from
>> vcl_complex import * File "/local/nolden/itk-bin/bin/vcl_complex.py",
>> line 5, in import _vcl_complex ImportError: No module named _vcl_complex
>>
>> I also get this kind of error after "make install" and trying to run
>> the examples.
>>
>> Can anyone help me with this?
>>
>> Marco
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list