[vtkusers] Building VTK with Python?

Randy Heiland heiland at ncsa.uiuc.edu
Thu Sep 12 13:38:21 EDT 2002


Dean,

Check for ...VTK/Wrapping/Python/vtkpython.py (not a .so) and make sure this
path is in your PYTHONPATH.

--Randy


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
simple Tcl
>     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
pertaining
>     to building with Python. I currently have the following VTK/Python shared
libraries:
>     libvtkCommonPython.so, libvtkFilteringPython.so, libvtkGraphicsPython.so,
>     libvtkImagingPython.so, libvtkIOPython.so, libvtkRenderingPython.so,
>     libvtkRenderingPythonTkWidgets.so. As you can see I do not have the
vtkpython.so
>     library.
>
>     Is there a way to produce the missing shared library without rebuilding
the entire
>     packages?
>
>     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
the directory
>     examplesPython in version 3.2?
>
>     Thanks in advance for any help.
>
> Best regards,
>     Dean
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>-- End of excerpt from Dean N. Williams





More information about the vtkusers mailing list