[vtkusers] Trying to use VTK library in Python Interpreter

Hesam hesam.ilati2 at gmail.com
Mon Aug 27 13:38:35 EDT 2012


Hi all*,*

*Goal*: Trying to use VTK library in Python Interpreter.

*What I did*: I have installed VTK using CMake with option VTK_WRAP_PYTHON
and Shared_Library enabled and build the VTK in visual studio and it has
finished with all builds successfully. Then I made the Python_Path.

*Problem*: When I try to import vtk library into python, I get the
following error message:

>>> import vtk

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import vtk
  File "...\VTK\VTKvisual\Wrapping\Python\vtk\__init__.py", line 42, in <module>
    from vtkFilteringPython import *
ImportError: No module named vtkFilteringPython

Any thoughts that why this is happening?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120827/8cdedd9c/attachment.htm>


More information about the vtkusers mailing list