| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| 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 | ||||||||
| 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() | ||||||||
| 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. | ||||||||
| Project | |||||||||
| Type | |||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0013907) dr4Ke (reporter) 2008-10-20 11:47 |
My patch for this issue is joined. |
|
(0026201) David Gobbi (developer) 2011-04-17 00:57 |
It looks like this issue was fixed by David Partyka, so I'm assigning the bug to him. commit 0c2451b1be36798517a59c7943593479c4bfd136 Author: Dave Partyka <dave.partyka@kitware.com> Date: Fri Jul 3 10:29:11 2009 -0400 http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=0c2451b1be36798517a59c7943593479c4bfd136 [^] |
| Notes |
| 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 |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |