Robert Kern robert.kern at
Thu Jul 23 13:03:03 EDT 2009

On 2009-07-23 03:55, Helvin wrote:
> I believe I now have vtkpython.exe. However, my 'import vtk' statement
> in my python code is not working. The error says something like "no
> module named vtk".
> Where do I find modules for vtk in pyqt? Do they exist?

There are no VTK modules in PyQt itself. The PyQt support is in the vtk package 
which can be built with VTK itself. You will need to install VTK and the vtk 
package correctly in order to achieve this. vtkpython.exe is not going to help 
you. Ignore it. After you have built VTK, you need to do an extra step to 
install the vtk package to where your Python interpreter will be able to find it.

Let's say that your build directory is c:\vtkbuild.

   cd \vtkbuild\Wrapping\Python
   python install
   cd \

Now you should be able to import vtk from your normal Python interpreter. If you 
are still having problems, you will need to copy-and-paste exactly what you did 
and what error messages you got. Do not paraphrase error messages.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Python-list mailing list