View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011817VTK(No Category)public2011-02-08 06:392011-02-11 07:12
ReporterJens Thomas 
Assigned ToDavid Gobbi 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformWindowsOSServer 2008 HPCOS Version6.0.6001
Product Version 
Target VersionFixed in Version 
Summary0011817: vtkRenderingPythonTkWidgets.dll cannot be found when trying to create a vtkTkRenderWidgetInteractor using vtkpython.exe
DescriptionI 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.
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0025387)
David Gobbi (developer)
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 (reporter)
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

 Issue History
Date Modified Username Field Change
2011-02-08 06:39 Jens Thomas New Issue
2011-02-10 15:17 David Gobbi Note Added: 0025387
2011-02-11 07:07 Jens Thomas Note Added: 0025390
2011-02-11 07:12 David Gobbi Status backlog => closed
2011-02-11 07:12 David Gobbi Assigned To => David Gobbi
2011-02-11 07:12 David Gobbi Resolution open => no change required


Copyright © 2000 - 2018 MantisBT Team