[vtkusers] Python wrapping
david.gobbi at gmail.com
Sat Nov 1 23:11:53 EDT 2014
The python modules are called "vtk*Python.pyd" on Windows.
On your system, I'm guessing that they should be in this directory:
And, in order for the modules to be loaded, all of the VTK DLLs
must also be in your PATH. Either that, or you can copy them all
into c:\VTK-VS10-x64\lib\site-packages\vtk so that the .pyd files
will be able to find them there.
The vtk*PythonD.dll files are not python modules, they are support
libraries that are needed by the python modules.
On Sat, Nov 1, 2014 at 8:54 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
> I just rebuilt VTK-5.10.1 64-bit on Windows with VTK_WRAP_PYTHON ON.
> The build completed without errors. I do not understand why I have 14 .lib
> and .dll files named vtk*PythonD.dll and vtk*PythonD.lib, and 14 .lib files
> named vtk*Python.lib, but no vtk*Python.dll. This causes my attempt to run
> a VTK-Python example to fail like this:
> D:\testing\VTK\Superquadric>vtkpython superquadric.py
> Traceback (most recent call last):
> File "superquadric.py", line 1, in <module> import vtk
> File "c:\VTK-VS10-x64\lib\site-packages\vtk\__init__.py", line 63, in
> <module> __helper.refine_import_err('rendering', 'vtkRenderingPython', exc)
> File "c:\VTK-VS10-x64\lib\site-packages\vtk\__helper.py", line 32, in
> refine_import_err raise LinkError, str(exc)
> vtk.__helper.LinkError: DLL load failed: %1 is not a valid Win32
> I see that somebody was asking exactly the same question back in October,
> 2010, but there was no answer.
> Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers