[vtkusers] Building VTK with Python?
heiland at ncsa.uiuc.edu
Thu Sep 12 13:38:21 EDT 2002
Check for ...VTK/Wrapping/Python/vtkpython.py (not a .so) and make sure this
path is in your PYTHONPATH.
On Sep 12, 9:01am, Dean N. Williams wrote:
> Subject: [vtkusers] Building VTK with Python?
> Dear VTK Users,
> I am trying to build VTK (4.0) with Python (2.2.1) and Tcl/Tk (8.3.3).
> After 1 1/2 hours, VTK built successfully. I am now able to run the
> Cone.tcl example (i.e., vtk Cone.tcl). But the simple Python example
> Cone.py (i.e., python Cone.py) produces the following error:
> Traceback (most recent call last):
> File "Cone.py", line 9, in ?
> from vtkpython import *
> ImportError: No module named vtkpython
> With "cmake -i", I thought I answered all the following questions
> to building with Python. I currently have the following VTK/Python shared
> libvtkCommonPython.so, libvtkFilteringPython.so, libvtkGraphicsPython.so,
> libvtkImagingPython.so, libvtkIOPython.so, libvtkRenderingPython.so,
> libvtkRenderingPythonTkWidgets.so. As you can see I do not have the
> Is there a way to produce the missing shared library without rebuilding
> I am on a PC/Linux (RH 7.2) platform. Has anyone built VTK with Python
for this platform?
> Also, where are the many examples for VTK Python users that were found in
> examplesPython in version 3.2?
> Thanks in advance for any help.
> Best regards,
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> Follow this link to subscribe/unsubscribe:
>-- End of excerpt from Dean N. Williams
More information about the vtkusers