[vtk-developers] vtk-python problem

Robert Etheridge roberte at southtexascollege.edu
Mon Dec 19 19:27:56 EST 2005


Hi

I have a win2k professional-sp4 system 

I installed w32vtj42-LatestRelease.exe from 15-Dec-2005 version 42.4455.0.0

I later installed the w32 build for python with python-2.4.2.msi

I performed setup.py after cd'ing to  c:\program files\vtk42\wrapping\python

I do have vtk_python in site-packages

If I cd to c:\program files\vtk42\examples\io\python then try to run stl.py, I get

C:\Program Files\vtk42\Examples\IO\Python>python stl.py
Traceback (most recent call last):
  File "stl.py", line 8, in ?
    import vtk
  File "c:\python24\Lib\site-packages\vtk_python\vtk\__init__.py", line 7, in ?
    from common import *
  File "c:\python24\Lib\site-packages\vtk_python\vtk\common.py", line 9, in ?
    from vtkCommonPython import *
ImportError: No module named vtkCommonPython

If I try to run vtkpython, it returns immediately without doing anything

I have tried copying vtkCommonPython.dll everywhere and setting up pythonpath pointing "everywhere", still getting the same results


OK, I found the problem

I found a reference to dll registration problems in a comment on CodeProject

I ran depends.exe from the VisualStudio 6 tools against vtkCommonPython.dll

Python21.dll is required but not present

Python now ships with and installs python24.dll into winnt\system32

w32vtj42-LatestRelease.exe does not install python21.dll anywhere and it is not included with the source release vtk-4.2-LatestRelease.zip

I found the same problem with vtkpython.exe


Bob Etheridge
South Texas College



The South Texas College domain name has changed from stcc.cc.tx.us to southtexascollege.edu. Please update your contact list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20051219/1484e534/attachment.html>


More information about the vtk-developers mailing list