[vtkusers] problem with VTK's Python bindings

Yifei Li yifli82 at gmail.com
Sat Feb 18 21:26:25 EST 2012


Hi all,

First of all, I did successfully compile and install VTK, as it can be seen
from the following message

Installed /tmp/yifli/lib/python2.6/site-packages/VTK-5.8.0-py2.6.egg


However , when I try to import vtk, I got the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/tmp/yifli/lib/python2.6/site-packages/VTK-5.8.0-py2.6.egg/vtk/__init__.py",
line 124, in <module>
    __helper.refine_import_err('qvtk', 'vtkQtPython', exc)
  File
"/tmp/yifli/lib/python2.6/site-packages/VTK-5.8.0-py2.6.egg/vtk/__helper.py",
line 32, in refine_import_err
    raise LinkError, str(exc)
vtk.__helper.LinkError: /tmp/yifli/lib/vtk-5.8/libQVTK.so.5.8: undefined
symbol:
_ZN19QAbstractProxyModel11setItemDataERK11QModelIndexRK4QMapIi8QVariantE

And all the tests failed when I run 'ctest -R Python' in the building
directory.

Any help is highly appreciated.

Yifei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120218/a79d3a98/attachment.htm>


More information about the vtkusers mailing list