<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>Hi,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>I confirm your wrong path.<br>Anyway I usually add also:<br>
<br>
sys.path.append("YOUR_BUILD_PATH/lib")</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Maybe this can help.<br>
<br>Paolo</span></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> Il Lunedì 31 Marzo 2014 11:03, Michka Popoff <michkapopoff@gmail.com> ha scritto:<br> </font> </div>  <div class="y_msg_container"><div id="yiv7420910104"><div>Hi<div><br clear="none"></div><div>seems your path is not correctly set. The path should be : <span class="yiv7420910104Apple-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="yiv7420910104Apple-style-span" color="#0000ff"><span class="yiv7420910104Apple-style-span" style="color:rgb(0, 0, 0);">There is no Release
 folder in the Python folder.</span></font></div><div><font class="yiv7420910104Apple-style-span" color="#0000ff"><span class="yiv7420910104Apple-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="yiv7420910104Apple-style-span" color="#0000ff"><span class="yiv7420910104Apple-style-span" style="color:rgb(0, 0, 0);"><br clear="none"></span></font></div><div><font class="yiv7420910104Apple-style-span" color="#0000ff"><span class="yiv7420910104Apple-style-span" style="color:rgb(0, 0, 0);">Michka</span></font></div><div><br clear="none"><div><div>Le 31 mars 2014 à 10:38, Chiara Caborni a écrit :</div><br clear="none" class="yiv7420910104Apple-interchange-newline"><blockquote type="cite"><div class="yiv7420910104yqt5534845704" id="yiv7420910104yqt10683"><div
 dir="ltr"><div>Hello,</div><div> </div><div>  I'm writing on behalf of Nicole in cc, which has subscribed to <a rel="nofollow" shape="rect" ymailto="mailto:insight-users@itk.org" target="_blank" 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></div>
_____________________________________<br clear="none">Powered by <a rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br clear="none"><br clear="none">Visit other Kitware open-source projects at<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br clear="none"><br clear="none">Kitware offers ITK Training Courses, for more information visit:<br clear="none">http://www.kitware.com/products/protraining.php<br clear="none"><br clear="none">Please keep messages on-topic and check the ITK FAQ at:<br clear="none">http://www.itk.org/Wiki/ITK_FAQ<br clear="none"><br clear="none">Follow this link to subscribe/unsubscribe:<br clear="none">http://www.itk.org/mailman/listinfo/insight-users<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><div class="yqt5534845704"
 id="yqt94585">_____________________________________<br clear="none">Powered by www.kitware.com<br clear="none"><br clear="none">Visit other Kitware open-source projects at<br clear="none"><a shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none"><br clear="none">Kitware offers ITK Training Courses, for more information visit:<br clear="none"><a shape="rect" href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br clear="none"><br clear="none">Please keep messages on-topic and check the ITK FAQ at:<br clear="none"><a shape="rect" href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br clear="none"><br clear="none">Follow this link to subscribe/unsubscribe:<br clear="none"><a shape="rect" href="http://www.itk.org/mailman/listinfo/insight-users"
 target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br clear="none"></div><br><br></div>  </div> </div>  </div> </div></body></html>