[Community] [Insight-users] ITK Python wrapper

JohnDoe peter.saponja at mmv.si
Thu Oct 24 05:55:12 EDT 2013


I have been trying to wrap ITK 4.4 into python with little success on windows
7. I managed to generate the build files by enabling BUILD_SHARED_FILES,
ITK_WRAP_Python and chaning the PYTHON_INCLUDE_DIR and PYTHON_LIBRARY in
CMAKE.

I built the files with moderate success in  VS 11:
========== Build: 645 succeeded, 293 failed, 90 up-to-date, 0 skipped
==========

I'we also added the "\Wrapping\Generators\Python" path to the PythonPath
variable but when I import InsightToolkit I get the following error:

<code>
Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    import InsightToolkit
  File
"C:\Users\user4\Documents\ITKBin\Wrapping\Generators\Python\InsightToolkit.py",
line 5, in <module>
    from ITKPyBase import *
  File
"C:\Users\user4\Documents\ITKBin\Wrapping\Generators\Python\ITKPyBase.py",
line 1, in <module>
    import itkBase
ImportError: No module named itkBase
</code>

It looks like I am missing itkBase.py. Does this have anything to do with
the failed messages when building? What can I do to solve this?

Thank you for the help.



--
View this message in context: http://itk-users.7.n7.nabble.com/ITK-Python-wrapper-tp32622.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



More information about the Community mailing list