<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>vtk-python problem</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have a win2k professional-sp4 system </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I installed w32vtj42-LatestRelease.exe from 15-Dec-2005 version 42.4455.0.0</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I later installed the w32 build for python with python-2.4.2.msi</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I performed setup.py after cd'ing to  c:\program files\vtk42\wrapping\python</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I do have vtk_python in site-packages</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">If I cd to c:\program files\vtk42\examples\io\python then try to run stl.py, I get</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">C:\Program Files\vtk42\Examples\IO\Python>python stl.py</FONT>

<BR><FONT SIZE=2 FACE="Arial">Traceback (most recent call last):</FONT>

<BR><FONT SIZE=2 FACE="Arial">  File "stl.py", line 8, in ?</FONT>

<BR><FONT SIZE=2 FACE="Arial">    import vtk</FONT>

<BR><FONT SIZE=2 FACE="Arial">  File "c:\python24\Lib\site-packages\vtk_python\vtk\__init__.py", line 7, in ?</FONT>

<BR><FONT SIZE=2 FACE="Arial">    from common import *</FONT>

<BR><FONT SIZE=2 FACE="Arial">  File "c:\python24\Lib\site-packages\vtk_python\vtk\common.py", line 9, in ?</FONT>

<BR><FONT SIZE=2 FACE="Arial">    from vtkCommonPython import *</FONT>

<BR><FONT SIZE=2 FACE="Arial">ImportError: No module named vtkCommonPython</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">If I try to run vtkpython, it returns immediately without doing anything</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have tried copying vtkCommonPython.dll everywhere and setting up pythonpath pointing "everywhere", still getting the same results</FONT></P>
<BR>

<P><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">OK, I found the problem</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">I found a reference to dll registration problems in a comment on CodeProject</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">I ran depends.exe from the VisualStudio 6 tools against vtkCommonPython.dll</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Python21.dll is required but not present</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Python now ships with and installs python24.dll into winnt\system32</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">w32vtj42-LatestRelease.exe does not install python21.dll anywhere and it is not included with the source release vtk-4.2-LatestRelease.zip</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I found the same problem with vtkpython.exe</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Bob Etheridge</FONT>

<BR><FONT SIZE=2 FACE="Arial">South Texas College</FONT>
</P>


<DIV><P><HR>
The South Texas College domain name has changed from stcc.cc.tx.us to southtexascollege.edu. Please update your contact list.
</P></DIV>
</BODY>
</HTML>