[Insight-users] need help using itk with python
Matei Stroila
matei.stroila at gmail.com
Wed Mar 14 14:43:48 EST 2007
I built the new ITK release (3.2.0) with Visual Studio 2005 and no errors.
I set the PYTHONPATH to the CSwig dir:
D:\build\InsightToolkit-3.2.0-bin\Wrapping\CSwig\Python\Release
and added to the PATH the build dir:
D:\build\InsightToolkit-3.2.0-bin\bin\release
When I try to use Python I get the following:
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> from InsightToolkit import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:/build/InsightToolkit-3.2.0-bin/Wrapping/CSwig/Python\Release\InsightT
oolkit.py", line 1, in <module>
from itkalgorithms import *
File "D:/build/InsightToolkit-3.2.0-bin/Wrapping/CSwig/Python\Release\itkalgor
ithms.py", line 1, in <module>
from itknumerics import *
File "D:/build/InsightToolkit-3.2.0-bin/Wrapping/CSwig/Python\Release\itknumer
ics.py", line 1, in <module>
from itkcommon import *
File "D:/build/InsightToolkit-3.2.0-bin/Wrapping/CSwig/Python\Release\itkcommo
n.py", line 1, in <module>
from vxlnumerics import *
File "D:/build/InsightToolkit-3.2.0-bin/Wrapping/CSwig/Python\Release\vxlnumer
ics.py", line 4, in <module>
from VXLNumericsPython import *
File "VXLNumericsPython.py", line 5, in <module>
import _VXLNumericsPython
ImportError: No module named _VXLNumericsPython
I checked the build dir and _VXLNumericsPython.dll is there. I don't
understand why is not finding that module.
Thanks a lot for help,
Matei
More information about the Insight-users
mailing list