[vtkusers] python wrapping local classes
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Thu Aug 28 14:49:04 EDT 2003
>>>>> "EB" == Ed Bachta <ebachta at iupui.edu> writes:
[snip]
EB> Traceback (most recent call last):
EB> File "<stdin>", line 1, in ?
EB> AttributeError: 'module' object has no attribute
EB> 'vtkHistogramColorBar' -----
'import vtk' will only import the standard VTK Python modules. You'll
have to import the local kit separately.
[snip]
>>>> from libvtkLocalPython import *
EB> Traceback (most recent call last):
EB> File "<stdin>", line 1, in ?
EB> ImportError: /usr/local/src/VTK/bin/libvtkLocalPython.so:
EB> undefined symbol: PyVTKClass_vtkActor2DNew -----
EB> I'm suspecting that I'm missing something in my
EB> Local/CMakeLists.txt, but I don't know what that would be. I'm
EB> working on a Linux box.
You'll need to link libvtkLocalPython.so atleast to
libvtkCommonPython. Add any other libraries depending on what parts
of VTK you use.
cheers,
prabhu
More information about the vtkusers
mailing list