vtkRenderingPythonTkWidgets.dll cannot be found when trying to create a vtkTkRenderWidgetInteractor using vtkpython.exe
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I built VTK 5.6.1 (MinSizeRel) with Visual Studio 9.0. by running the ALL_BUILD target, and then ran the INSTALL target, which created a vtkpython.exe file in:
C:\Program Files (x86)\VTK\bin
if I run the example:
vtk-5.6.1\Examples\GUI\Python\ImagePlaneWidget.py
with vtkpython.exe, I get the following:
C:\Program Files (x86)\VTK\bin>vtkpython.exe C:\Users\jmht\Documents\vtk-5.6.1\Examples\GUI\Python\ImagePlaneWidget.py Traceback (most recent call last): File "C:\Users\jmht\Documents\vtk-5.6.1\Examples\GUI\Python\ImagePlaneWidget.py", line 296, in height=600) File "C:\Program Files (x86)\VTK\lib\site-packages\vtk\tk\vtkTkRenderWindowInteractor.py", line 48, in init vtkLoadPythonTkWidgets(master.tk) File "C:\Program Files (x86)\VTK\lib\site-packages\vtk\tk\vtkLoadPythonTkWidgets.py", line 69, in vtkLoadPythonTkWidgets interp.call('load', filename) _tkinter.TclError: couldn't load library "vtkRenderingPythonTkWidgets.dll": A function specified in the import table could not be resolved by the system. Windows is not telling which one, I'm sorry.
vtkRenderingPythonTkWidgets.dll has been built and is located in the C:\Program Files (x86)\VTK\bin folder.