MantisBT - VTK
View Issue Details
0011817VTK(No Category)public2011-02-08 06:392011-02-11 07:12
Jens Thomas 
David Gobbi 
normalmajoralways
closedno change required 
WindowsServer 2008 HPC6.0.6001
 
 
0011817: vtkRenderingPythonTkWidgets.dll cannot be found when trying to create a vtkTkRenderWidgetInteractor using vtkpython.exe
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 <module>
    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.
No tags attached.
Issue History
2011-02-08 06:39Jens ThomasNew Issue
2011-02-10 15:17David GobbiNote Added: 0025387
2011-02-11 07:07Jens ThomasNote Added: 0025390
2011-02-11 07:12David GobbiStatusbacklog => closed
2011-02-11 07:12David GobbiAssigned To => David Gobbi
2011-02-11 07:12David GobbiResolutionopen => no change required

Notes
(0025387)
David Gobbi   
2011-02-10 15:17   
The summary says vtkRenderingPythonTkWidgets.dll cannot be found, that is incorrect. This is the last line of the error printout:

_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.

It states that the problem is an unresolved symbol, not a missing dll. Most likely, there is a link_library missing for the vtkRenderingPythonTkWidgets target that is specific to your system. If you can load vtkRenderingPythonTkWidgets into dependency walker, it might provide some clues.
(0025390)
Jens Thomas   
2011-02-11 07:07   
Hi David,

Thanks for the tip. Looks like it was a bug with the installer for tcl 8.6 not setting the PATH correctly as tcl8.6.dll couldn't be found. As 8.6 is beta,I uninstalled it, and rebuilt with tcl 8.5 and it now works fine.

Sorry for raising an issue that wasn't to do with VTK.

Thanks,

Jens