[vtkusers] vtk latest + vanilla python 2.2.2

Mike Carifio carifio at usys.com
Wed Feb 12 08:53:50 EST 2003


I checked vtk sources out of the cvs repository Monday night (2/10/03),
installed Cmake, ran CMakeSetup and built vtk and the python wrappers
using VS7 on Windows XP. I did a "release" build. The example
executables
run. But I'm having difficulty connecting up vtk with python. Is the
VTK-Python Package documentation still up-to-date?

Here's the error I'm getting:

>>> import vtk
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:/Documents and Settings/carifio.TWICE/My
Documents/vtk/vtk/vtkbin/Wrap
ping/Python/vtk/__init__.py", line 7, in ?
    from common import *
  File "C:\Documents and Settings\carifio.TWICE\My
Documents\vtk\vtk\vtkbin\Wrap
ping\Python/vtk/common.py", line 7, in ?
    from libvtkCommonPython import *
ImportError: No module named libvtkCommonPython
>>>

Obviously, python 2.2.2 can't find libvtkCommonPython. There is a
vtkCommonPython.dll. When I import that, I get:

>>> import vtkCommonPython
Fatal Python error: Interpreter not initialized (version mismatch?)

Am I supposed to be running a particular version of Python? Do I need to
build Python from sources to make everything kosher?

Finally, is this email list archived? I can't believe I'm the first
person
to be having this problem. Thanks.




More information about the vtkusers mailing list