Issues with nonfunctioning VTK under python 2.5

Eric Carlson ecarlson at coe.eng.ua.edu
Thu Jun 21 20:00:45 EDT 2007


Hello,

I have tried to install the entire stash of eggs in the svn repository 
at enthought using enthought enstaller on Windows XP,and it mostly seems 
to have been successful for my python2.5 installation. Unfortunately, I 
can not seem to load up my vtk modules. Every time I try to import vtk 
from anywhere using python2.5, I get the message

"import vtk
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File 
"c:\python25\lib\site-packages\VTK-5.0.1-py2.5-win32.egg\vtk\__init__.py"
, line 29, in <module>
     from common import *
   File 
"c:\python25\lib\site-packages\VTK-5.0.1-py2.5-win32.egg\vtk\common.py",
line 9, in <module>
     from vtkCommonPython import *
ImportError: No module named vtkCommonPython"

I have checked my path, unistalled vtk, reinstalled vtk, added a vtk.pth 
file with various plausible paths, changed the name of 
vtkCommonPython.dll to vtkCommonPython.pyd (which changes the message to 
"ImportError: Module use of python24.dll conflicts with this version of 
Python"), but nothing seems to work.

I have a version of enthought sumo python 2.4 installed also which might 
cause some conflicts, but so far vtk seems to be the only package that 
has not worked correctly (scipy, numpy, matplotlib, PyOpengl, PyODE, and 
wxpython2.8 demos all work)

Any suggestions would be greatly appreciated.

Regards,
Eric Carlson



More information about the Python-list mailing list