Wednesday, June 23, 2010

Solution for "ImportError: No module named vtkCommonPython"

After I compile and install Wrapper,and this problem appear.

and after a while i found out python looks for it's module by their extension .py .pyc .pyd

but VS2005 compile the code module use dll for it's extension.

so I rename vtkCommonPython.dll to vtkCommonPython.pyd and everything does well.


change vtk*Python.dll to vtk*Python.pyd

No comments:

Post a Comment