[vtkusers] vtkpython os x 10.2.3
garsha
garsha at itg.uiuc.edu
Fri Feb 21 14:25:06 EST 2003
Greetings,
I'm trying to get VTK w/Python wrappers working on MacOS X 10.2.3.
Everything builds fine (CMake 6.2, VTK 4.3.0). When I try to import
vtk, I get the following error (I get the error both when I use the
strait python interpreter (2.3a1) and when I run the vtkpython
interpreter (see below #1 and #2). Any insights into how I might fix
this would be much appreciated.
When I run the python 2.2.2 interpreter, the error is a little
different (see #3 below). Thanks in advance for any help.
Cheers,
Karl G.
#1___________________________________________
Welcome to Darwin!
[mango:~] garsha% python
Python 2.3a1 (#1, Feb 15 2003, 15:26:36)
[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: 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_objectiPii
__Z29vtkPythonGetObjectFromPointerP13vtkObjectBase
__Z29vtkPythonGetPointerFromObjec
>>> ^D
#2_________________________________________
[mango:~] garsha% vtkpython
vtk version 4.3.0, vtk source $Revision: 1.1497 $, $Date: 2003/02/20
03:45:04 $ (GMT)
Python 2.3a1 (#1, Feb 15 2003, 15:26:36)
[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 "/usr/local/src/VTK/Wrapping/Python/vtk/__init__.py", line 8, in
?
from filtering import *
File "/usr/local/src/VTK/Wrapping/Python/vtk/filtering.py", line 7,
in ?
from libvtkFilteringPython import *
ImportError: Failure linking new module: : dyld: vtkpython 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_objectiPii
__Z29vtkPythonGetObjectFromPointerP13vtkObjectBase
__Z29vtkPythonGetPointerFromOb
>>>
#3_____________________________________________
Python 2.2.2 (#1, Jan 5 2003, 20:13:52)
[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/Current/lib/python2.2/
site-packages/vtk_python/vtk/__init__.py", line 7, in ?
File
"/Library/Frameworks/Python.framework/Versions/Current/lib/python2.2/
site-packages/vtk_python/vtk/common.py", line 7, in ?
ImportError: No module named libvtkCommonPython
>>>
Karl Garsha
Light Microscopy Specialist
Imaging Technology Group
Beckman Institute for Advanced Science and Technology
University of Illinois at Urbana-Champaign
405 North Mathews Avenue
Urbana, Champaign 61801
Office: B650J
Phone: 217-244-6292
Fax: 217-244-6219
www.itg.uiuc.edu
More information about the vtkusers
mailing list