[vtkusers] VTK 4.2.2 with Python 2.3 on OS X
Robb Brown
brownr at ucalgary.ca
Fri Aug 1 14:38:19 EDT 2003
Has anyone gotten VTK running with Python 2.3 on OSX? The switch from
Python 2.2 to 2.3 appears to break VTK's wrapping. When doing an
"import vtk" here's the error:
Python 2.3 (#2, Jul 30 2003, 11:45:28)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/vtk_python/vtk/__init__.py", line 8, in ?
from filtering import *
File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-
packages/vtk_python/vtk/filtering.py", line 7, in ?
from libvtkFilteringPython import *
ImportError: Failure linking new module: : dyld:
/Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/
Contents/MacOS/Python Undefined symbols:
_PyArg_VTKParseTuple
_PyVTKClass_Check
_PyVTKClass_New
_PyVTKClass_vtkCollectionNew
_PyVTKClass_vtkDataObjectNew
_PyVTKClass_vtkImplicitFunctionNew
_PyVTKClass_vtkLocatorNew
_PyVTKClass_vtkObjectNew
_PyVTKClass_vtkPointLocatorNew
_PyVTKClass_vtkScalarsToColorsNew
_PyVTKClass_vtkSourceNew
__Z19vtkPythonCheckArrayP7_objectiPfi
__Z19vtkPythonCheckArrayP7_objectiPi
>>>
vtkCommon is built, and is accessible (in the same place as all the
other libraries). It's been suggested on the Python list this might be
due to VTK's use of -flat_namespace. Does anyone have any thoughts?
Build was with GCC 3.1 (same as Python) and VTK using Carbon.
Thanks,
Robb
_____________________________
Robb Brown
Seaman Family MR Center
Calgary, AB
More information about the vtkusers
mailing list