<div dir="ltr"><div>Hello,</div><div> </div><div> I'm writing on behalf of Nicole in cc, which has subscribed to <a href="mailto:insight-users@itk.org">insight-users@itk.org</a>, but still cannot send mails directly to the community, can you do something about that? thank you</div>
<div> </div><div> </div><div>I'm trying to use the python wrapped ITK, but I'm running into trouble setting up my image type.</div><div> </div><div> </div><div> </div><div>My code so far: </div><div> </div><div><font color="#0000ff">import sys</font></div>
<div><font color="#0000ff"> </font></div><div><font color="#0000ff">sys.path.append('C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release')</font></div><div><font color="#0000ff"> </font></div>
<div><font color="#0000ff">import itk</font></div><div><font color="#0000ff"> </font></div><div><font color="#0000ff">pixelType = itk.UC</font></div><div><font color="#0000ff"> </font></div><div><font color="#0000ff">imageType = itk.Image[pixelType,3]</font></div>
<div> </div><div> </div><div> </div><div><font color="#ff0000">Traceback (most recent call last):</font></div><div><font color="#ff0000"> </font></div><div><font color="#ff0000">File "<console>", line 1, in <module></font></div>
<div><font color="#ff0000"> </font></div><div><font color="#ff0000">File "C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkLazy.py", line 37, in __getattribute__</font></div><div>
<font color="#ff0000"> </font></div><div><font color="#ff0000">itkBase.LoadModule(module, namespace)</font></div><div><font color="#ff0000"> </font></div><div><font color="#ff0000">File "C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py", line 95, in LoadModule</font></div>
<div><font color="#ff0000"> </font></div><div><font color="#ff0000">LoadModule(dep, namespace)</font></div><div><font color="#ff0000"> </font></div><div><font color="#ff0000">File "C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py", line 95, in LoadModule</font></div>
<div><font color="#ff0000"> </font></div><div><font color="#ff0000">LoadModule(dep, namespace)</font></div><div><font color="#ff0000"> </font></div><div><font color="#ff0000">File "C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py", line 95, in LoadModule</font></div>
<div><font color="#ff0000"> </font></div><div><font color="#ff0000">LoadModule(dep, namespace)</font></div><div><font color="#ff0000"> </font></div><div><font color="#ff0000">File "C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py", line 95, in LoadModule</font></div>
<div><font color="#ff0000"> </font></div><div><font color="#ff0000">LoadModule(dep, namespace)</font></div><div><font color="#ff0000"> </font></div><div><font color="#ff0000">File "C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py", line 95, in LoadModule</font></div>
<div><font color="#ff0000"> </font></div><div><font color="#ff0000">LoadModule(dep, namespace)</font></div><div><font color="#ff0000"> </font></div><div><font color="#ff0000">File "C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py", line 103, in LoadModule</font></div>
<div><font color="#ff0000"> </font></div><div><font color="#ff0000">if not swigModuleName in sys.modules: module = loader.load(swigModuleName)</font></div><div><font color="#ff0000"> </font></div><div><font color="#ff0000">File "C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py", line 213, in load</font></div>
<div><font color="#ff0000"> </font></div><div><font color="#ff0000">fp, pathname, description = imp.find_module(name)</font></div><div> </div><div> </div><div> </div><div>Can anyone help me understand why this is happening and what I can do about it?</div>
<div> </div><div> </div><div> </div><div>Cheers,</div><div> </div><div>Nicole </div><div>-- </div><div>Chiara</div><div> </div></div>