[ITK-users] Using ITK python wrapper
Chiara Caborni
chiara.caborni at gmail.com
Mon Mar 31 04:38:19 EDT 2014
Hello,
I'm writing on behalf of Nicole in cc, which has subscribed to
insight-users at itk.org, but still cannot send mails directly to the
community, can you do something about that? thank you
I'm trying to use the python wrapped ITK, but I'm running into trouble
setting up my image type.
My code so far:
import sys
sys.path.append('C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release')
import itk
pixelType = itk.UC
imageType = itk.Image[pixelType,3]
Traceback (most recent call last):
File "<console>", line 1, in <module>
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkLazy.py",
line 37, in __getattribute__
itkBase.LoadModule(module, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 95, in LoadModule
LoadModule(dep, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 95, in LoadModule
LoadModule(dep, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 95, in LoadModule
LoadModule(dep, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 95, in LoadModule
LoadModule(dep, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 95, in LoadModule
LoadModule(dep, namespace)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 103, in LoadModule
if not swigModuleName in sys.modules: module = loader.load(swigModuleName)
File
"C:/Toolkits/ITK-4.5.1/build_x64_VS2008_withLTK/Wrapping/Generators/Python/Release\itkBase.py",
line 213, in load
fp, pathname, description = imp.find_module(name)
Can anyone help me understand why this is happening and what I can do about
it?
Cheers,
Nicole
--
Chiara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140331/c2a9efcf/attachment.html>
More information about the Insight-users
mailing list