[vtkusers] Importing vtkpython

Randy Heiland heiland at ncsa.uiuc.edu
Mon Aug 21 10:46:22 EDT 2000


On Aug 21,  4:22pm, Mikkel Bollinger wrote:
> Subject: [vtkusers] Importing vtkpython
> I'm writing an VTK application in python. I have recently downloaded
> the nightly release of VTK and run configure with:
> ./configure --with-mesa --with-shared --with-x --with-python \
>      --with-tkwidget --with-patented --with-contrib
> VTK is then compiled but an error is raised when I try to import the VTK
> modules from python:
>
> >>> from vtkpython import *
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> ImportError: ./vtkpython.so: undefined symbol: initlibVTKLocalPython

Mikkel,

You always have the option of importing each lib separately:

from libVTKCommonPython import *
from libVTKGraphicsPython import *
 ...

--Randy




More information about the vtkusers mailing list