<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear ITK community,<br>
I compiled ITK 4.8 into an Ubuntu 14.04 machine enabling also the
python wrapping.<br>
Compiling the code took really a while and I had to restart the make
phase more than one time since it crashed without any apparently
reason.<br>
Finally when the make step was over I executed the make install
command.<br>
<br>
If I open ipython and I type "import itkImagePython" it returns<br>
<br>
---------------------------------------------------------------------------<br>
ImportError Traceback (most recent
call last)<br>
<ipython-input-1-dfd82b0a3e37> in <module>()<br>
----> 1 import itkImagePython<br>
<br>
/usr/local/lib/ITK-4.8/Python/itkImagePython.py in <module>()<br>
30 fp.close()<br>
31 return _mod<br>
---> 32 _itkImagePython = swig_import_helper()<br>
33 del swig_import_helper<br>
34 else:<br>
<br>
/usr/local/lib/ITK-4.8/Python/itkImagePython.py in
swig_import_helper()<br>
22 fp, pathname, description =
imp.find_module('_itkImagePython', [dirname(__file__)])<br>
23 except ImportError:<br>
---> 24 import _itkImagePython<br>
25 return _itkImagePython<br>
26 if fp is not None:<br>
<br>
ImportError: No module named _itkImagePython<br>
<br>
but if I run "import ITKRegionGrowingPython" it works.<br>
In addition, after importing ITKRegionGrowingPython also
itkImagePython works!<br>
<br>
I think the path is correctly set, since I see
/usr/local/lib/ITK-4.8/Python.<br>
I also noted that in the "compiledFolder/lib" I see:<br>
<ul>
<li>ITKRegionGrowingPython.py and _ITKRegionGrowingPython.so </li>
<li>itkImagePython.py but NOT _itkImagePython.so</li>
</ul>
<br>
Do you have any idea?<br>
<br>
Furthermore, is it the syntax itk.something still valid or it has
been replaced by separate submodules?<br>
Because if I run<br>
hm=itk.HistogramMatchingImageFilter()<br>
I get <br>
UnboundLocalError: local variable 'module' referenced before
assignment<br>
<br>
Thank you very much.<br>
Regards.<br>
<br>
Paolo
</body>
</html>