[vtkusers] VTK 6 and Python

Nicole Kovacs nkovac2 at uwo.ca
Thu Jun 4 17:32:27 EDT 2015

Hi all,

I'm trying to build VTK with Python (and PyQt as well). After some time I was able to do it successfully on VTK5.10, but the same procedure does not work for VTK6.2 (as I couldn't find the setup.py script).

The error I'm getting is when running python from Command Prompt and typing "import vtk". I get an error saying:

ImportError: DLL load failed: The specified module could not be found

which is probably caused by not running setup.py or some other detail that I missed.

It may be important to note that I'm working in a Windows 7 with Visual Studio 2012, PyQt4, and Qt4. Also, running vtkpython works.

I do realize there are binaries for doing this, but I want to build VTK from source. So what I would like to ask is:

Is there a tutorial or a set of instructions on how to build VTK6 with Python properly (in Windows)? If not, what are the differences between building Python with VTK5.10 and VTK6?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150604/f8050ace/attachment.html>

More information about the vtkusers mailing list