[vtkusers] PyVTKClass_vtkInformationQuadratureSchemeDefinitionVectorKeyNew (undefined symbol)

Alex Pletzer pletzer at txcorp.com
Mon Oct 20 18:11:44 EDT 2008


Hi,

Does anybody know how to fix the undefined symbol error I'm getting with 
the latest (cvs) version of vtk?

# the symbol is in 
/contrib/vtk-2008-10-20-parallel-python/lib/vtk-5.3/libvtkCommonPythonD.so
[pletzer at quartic vtk-build]$ nm 
/contrib/vtk-2008-10-20-parallel-python/lib/vtk-5.3/libvtkCommonPythonD.so 
| grep PyVTKClass_vtkInformationQuadratureSchemeDefinitionVectorKeyNew
00000000000b9b36 T 
PyVTKClass_vtkInformationQuadratureSchemeDefinitionVectorKeyNew

# adding /contrib/vtk-2008-10-20-parallel-python/lib/vtk-5.3/ to PYTHONPATH
[pletzer at quartic vtk-build]$ export 
PYTHONPATH=/contrib/vtk-2008-10-20-parallel-python/lib/vtk-5.3/:$PYTHONPATH

[pletzer at quartic vtk-build]$ echo $PYTHONPATH
/contrib/vtk-2008-10-20-parallel-python/lib/vtk-5.3/:/contrib/vtk-2008-10-20-parallel-python/lib/python2.5/site-packages/

# still cannot resolve the symbol
[pletzer at quartic vtk-build]$ python
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import vtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/usr/local/contrib/vtk-2008-10-20-parallel-python/lib/python2.5/site-packages/VTK-5.3.0-py2.5.egg/vtk/__init__.py", 
line 41, in <module>
    from common import *
  File 
"/usr/local/contrib/vtk-2008-10-20-parallel-python/lib/python2.5/site-packages/VTK-5.3.0-py2.5.egg/vtk/common.py", 
line 7, in <module>
    from libvtkCommonPython import *
ImportError: 
/contrib/vtk-2008-10-20-parallel-python/lib/python2.5/site-packages/VTK-5.3.0-py2.5.egg/vtk/libvtkCommonPython.so: 
undefined symbol: 
PyVTKClass_vtkInformationQuadratureSchemeDefinitionVectorKeyNew

 >>> import sys
 >>> print sys.path
['', 
'/contrib/vtk-2008-10-20-parallel-python/lib/python2.5/site-packages/VTK-5.3.0-py2.5.egg', 
'/usr/lib64/python2.5/site-packages/simplejson-1.9.1-py2.5-linux-x86_64.egg', 
'/usr/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg', 
'/usr/lib/python2.5/site-packages/flup-1.0-py2.5.egg', 
'/contrib/vtk-2008-10-20-parallel-python/lib/vtk-5.3', 
'/contrib/vtk-2008-10-20-parallel-python/lib/python2.5/site-packages', 
'/usr/lib64/python25.zip', '/usr/lib64/python2.5', 
'/usr/lib64/python2.5/plat-linux2', '/usr/lib64/python2.5/lib-tk', 
'/usr/lib64/python2.5/lib-dynload', 
'/usr/lib64/python2.5/site-packages', 
'/usr/lib64/python2.5/site-packages/Numeric', 
'/usr/lib64/python2.5/site-packages/PIL', 
'/usr/lib64/python2.5/site-packages/gtk-2.0', 
'/usr/lib/python2.5/site-packages']

Thanks for your help.

--Alex

-- 
Alexander Pletzer
Tech-X (p) 303 - 996 2031 (c) 609 235 6022 (f) 303 448 7756




More information about the vtkusers mailing list