[Insight-users] ImportError: No module named ITKMetricsv4Python

Mathieu Stumpf mathieu.stumpf at etu.unistra.fr
Wed Apr 18 07:02:20 EDT 2012


Hello,

Having to open a 4D image, I can't use SimpleITK which doesn't support
it yet (I get the error : Images of Vector Pixel types currently are not
supported).

So I turn back to ITK and its included python wrapper. So I looked in
the nice Examples to see how to open some files, but I'm not able to run
a simple example :
        ~/src/itk-git/ITK/Examples$ python IO/DicomSliceRead.py 
        Traceback (most recent call last):
          File "IO/DicomSliceRead.py", line 24, in <module>
            from InsightToolkit import *
          File "/usr/local/lib/ITK-4.1/Python/InsightToolkit.py", line 75, in <module>
            from ITKMetricsv4Python import *
        ImportError: No module named ITKMetricsv4Python
        
What's wrong, the only installed ITKMetrics file I found in my
installation directory was :
        /usr/local/lib/cmake/ITK-4.1/Modules/ITKMetricsv4.cmake
        
ITK was already compiled and installed with the python wrapper, so I
don't see what eventual step I messed.

Kind regards,
mathieu



More information about the Insight-users mailing list