<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi<div><br></div><div>seems your path is not correctly set. The path should be : <span class="Apple-style-span" style="color: rgb(0, 0, 255); ">sys.path.append('C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python')</span></div><div><font class="Apple-style-span" color="#0000ff"><span class="Apple-style-span" style="color: rgb(0, 0, 0); ">There is no Release folder in the Python folder.</span></font></div><div><font class="Apple-style-span" color="#0000ff"><span class="Apple-style-span" style="color: rgb(0, 0, 0); ">Maybe you'll have to play a little bit with the path, you are under windows so perhaps the slashes need to be replaced by backslashes ?</span></font></div><div><font class="Apple-style-span" color="#0000ff"><span class="Apple-style-span" style="color: rgb(0, 0, 0); "><br></span></font></div><div><font class="Apple-style-span" color="#0000ff"><span class="Apple-style-span" style="color: rgb(0, 0, 0); ">Michka</span></font></div><div><br><div><div>Le 31 mars 2014 à 10:38, Chiara Caborni a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><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>
_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></blockquote></div><br></div></body></html>