[vtkusers] VTK 6 and Python
David Gobbi
david.gobbi at gmail.com
Fri Jun 5 08:21:10 EDT 2015
Hi Nicole,
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.
Alternatively, you can manually copy lib/*.pyd and Wrapping/Python/vtk from
your build directory into python's site-packages directory.
There might be a tutorial, but I haven't seen one.
- David
On Thu, Jun 4, 2015 at 3:32 PM, Nicole Kovacs <nkovac2 at uwo.ca> wrote:
> 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?*
>
>
> Regards,
>
> Nicole
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150605/b454b1fe/attachment.html>
More information about the vtkusers
mailing list