[vtkusers] Python and VTK under Linux

Charl P. Botha c.p.botha at its.tudelft.nl
Tue May 21 17:10:23 EDT 2002


On Tue, May 21, 2002 at 04:33:06PM -0400, Brian White wrote:
> Traceback (most recent call last):
>   File "Cone.py", line 9, in ?
>     from vtkpython import *
>   File "/src/vtk/v4.0/Wrapping/Python/vtkpython.py", line 29, in ?
>     exec "from "+kit_name+" import *"
>   File "<string>", line 1, in ?
> ImportError: /usr/local/lib/vtk/libvtkCommonPython.so: undefined symbol:
> PyType_IsSubtype
> 
> 
> When I run "nm" on the .so reported sure enough that symbol is listed as
> undefined. Has anyone else run into this problem?  Am I configuring
> before the build incorrectly somehow?

Do you have more versions of python on your system?  It almost looks like a
version mixup.  PyType_IsSubtype is new in Python 2.2.  What does:
ldd /usr/local/lib/vtk/libvtkCommonPython.so 
yield w.r.t. the python library that you're linking with?

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list