[vtkusers] broken vtkTkRenderWindowInteractor.py in 5.2.0?
Alexander Pletzer
pletzer at txcorp.com
Mon Sep 1 22:04:22 EDT 2008
Hi,
I have downloaded and built vtk a few weeks ago from cvs. I'm
encountering an error I never had before, which can also be reproduced
by running vtkTkRenderWindowInteractor.py in standalone, ie running the
vtkRenderWindowInteractorConeExample() example:
[pletzer at localhost tmp]$ python
/usr/lib/python2.5/site-packages/VTK-5.2.0-py2.5.egg/vtk/tk/vtkTkRenderWindowInteractor.py
Traceback (most recent call last):
File
"/usr/lib/python2.5/site-packages/VTK-5.2.0-py2.5.egg/vtk/tk/vtkTkRenderWindowInteractor.py",
line 394, in <module>
vtkRenderWindowInteractorConeExample()
File
"/usr/lib/python2.5/site-packages/VTK-5.2.0-py2.5.egg/vtk/tk/vtkTkRenderWindowInteractor.py",
line 364, in vtkRenderWindowInteractorConeExample
pane = vtkTkRenderWindowInteractor(root, width=300, height=300)
File
"/usr/lib/python2.5/site-packages/VTK-5.2.0-py2.5.egg/vtk/tk/vtkTkRenderWindowInteractor.py",
line 48, in __init__
vtkLoadPythonTkWidgets(master.tk)
File
"/usr/lib/python2.5/site-packages/VTK-5.2.0-py2.5.egg/vtk/tk/vtkLoadPythonTkWidgets.py",
line 54, in vtkLoadPythonTkWidgets
if len(path) > 0 and path[0] == '{' and path[-1] == '}':
TypeError: object of type '_tkinter.Tcl_Obj' has no len()
>>> v = vtk.vtkVersion()
>>> print v.GetVTKVersion()
5.2.0
Any suggestion would be welcome. Thanks for your help.
--Alex
More information about the vtkusers
mailing list