<div dir="ltr">Hi Nicole,<div><br></div><div>What is VTK_INSTALL_PYTHON_MODULE_DIR set to in your cmake cache? It should be python's site-packages directory, e.g. C:/Python27/Lib/site-packages.</div><div><br></div><div>Alternatively, you can manually copy lib/*.pyd and Wrapping/Python/vtk from your build directory into python's site-packages directory.</div><div><br></div><div>There might be a tutorial, but I haven't seen one.</div><div><br></div><div> - David</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 4, 2015 at 3:32 PM, Nicole Kovacs <span dir="ltr"><<a href="mailto:nkovac2@uwo.ca" target="_blank">nkovac2@uwo.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi all,</p>
<p><br>
</p>
<p>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).</p>
<p><br>
</p>
<p>The error I'm getting is when running python from Command Prompt and typing "import vtk". I get an error saying:</p>
<p><br>
</p>
<p>ImportError: DLL load failed: The specified module could not be found</p>
<p><br>
</p>
<p>which is probably caused by not running setup.py or some other detail that I missed.<br>
</p>
<p><br>
</p>
<p>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.<br>
</p>
<p><br>
</p>
<p>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:</p>
<p><strong>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?</strong></p>
<p><br>
</p>
<p>Regards,</p>
<p>Nicole</p></div></div></blockquote></div></div></div>