MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0007768 | VTK | (No Category) | public | 2008-10-01 23:17 | 2013-04-05 19:37 |
Reporter | Alexander Pletzer | ||||
Assigned To | David Partyka | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Project | |||||
Type | |||||
Summary | 0007768: Python vtkTkRenderWindowInteractor failure with Tcl/Tk 8.5 | ||||
Description | The instantiation of vtkTkRenderWindowInteractor under Python fails with the latest tcl/tk version 8.5 on Fedora 9 x86_64. To see the problem it suffices to run any of the examples under VTK/Examples/*/Python which uses vtkTkRenderWindowInteractor. For instance: [pletzer@localhost Python]$ pwd /home/research/pletzer/Download/VTK/Examples/Annotation/Python [pletzer@localhost Python]$ python DispAllFonts.py Traceback (most recent call last): File "DispAllFonts.py", line 79, in <module> vtkw = vtkTkRenderWindowInteractor(root, rw=renWin, width=800) File "/usr/lib/python2.5/site-packages/VTK-5.3.0-py2.5.egg/vtk/tk/vtkTkRenderWindowInteractor.py", line 48, in __init__ vtkLoadPythonTkWidgets(master.tk) File "/usr/lib/python2.5/site-packages/VTK-5.3.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() | ||||
Steps To Reproduce | |||||
Additional Information | The problem is due to path containing not only a list of strings but also _tkinter.Tcl_Obj instances. This problem has been described at http://www.python.org/doc/2.3/whatsnew/node18.html. [^] Cure: Replace except AttributeError: by except: ###### fix AttributeError: at line 57 in file /usr/lib/python2.5/site-packages/VTK-5.3.0-py2.5.egg/vtk/tk/vtkLoadPythonTkWidgets.py. Thanks for fixing this. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://www.vtk.org/Bug/file/6788/vtkLoadPythonTkWidgets.py.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-10-01 23:17 | Alexander Pletzer | New Issue | |||
2008-10-20 11:46 | dr4Ke | File Added: vtkLoadPythonTkWidgets.py.patch | |||
2008-10-20 11:47 | dr4Ke | Note Added: 0013907 | |||
2011-02-26 10:30 | David Gobbi | Assigned To | => David Gobbi | ||
2011-02-26 10:30 | David Gobbi | Status | backlog => tabled | ||
2011-04-17 00:57 | David Gobbi | Note Added: 0026201 | |||
2011-04-17 00:57 | David Gobbi | Assigned To | David Gobbi => David Partyka | ||
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
2013-04-05 19:36 | Berk Geveci | Status | backlog => tabled | ||
2013-04-05 19:36 | Berk Geveci | Resolution | open => fixed | ||
2013-04-05 19:37 | Berk Geveci | Status | tabled => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|