ports/155654: science/mayavi: TypeError: object of type '_tkinter.Tcl_Obj' has no len()

TAOKA Fumiyoshi fmysh at iijmio-mail.jp
Fri Mar 18 09:20:09 UTC 2011


>Number:         155654
>Category:       ports
>Synopsis:       science/mayavi: TypeError: object of type '_tkinter.Tcl_Obj' has no len()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 18 09:20:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     TAOKA Fumiyoshi
>Release:        
>Organization:
>Environment:
>Description:
	MayaVi fails to run.
	See an entry for _tkinter.Tcl_Obj in http://www.python.org/doc/2.3/whatsnew/node18.html

>How-To-Repeat:

% mayavi
Traceback (most recent call last):
  File "/usr/local/bin/mayavi", line 317, in <module>
    app = MayaViTkGUI (r)
  File "/usr/local/lib/python2.7/site-packages/mayavi/Main.py", line 1009, in __init__
    self.renwin = Misc.RenderWindow.RenderWindow (self.renwin_frame)
  File "/usr/local/lib/python2.7/site-packages/mayavi/Misc/RenderWindow.py", line 89, in __init__
    height=505)
  File "/usr/local/lib/vtk/python/vtk/tk/vtkTkRenderWidget.py", line 84, in __init__
    vtkLoadPythonTkWidgets(master.tk)
  File "/usr/local/lib/vtk/python/vtk/tk/vtkLoadPythonTkWidgets.py", line 37, in vtkLoadPythonTkWidgets
    if len(prev) > 0 and prev[0] == '{' and prev[-1] != '}':
TypeError: object of type '_tkinter.Tcl_Obj' has no len()

>Fix:

diff --exclude CVS -uNr mayavi.orig/files/patch-mayavi mayavi/files/patch-mayavi
--- mayavi.orig/files/patch-mayavi	1970-01-01 09:00:00.000000000 +0900
+++ mayavi/files/patch-mayavi	2011-03-18 17:53:51.362252645 +0900
@@ -0,0 +1,10 @@
+--- mayavi.orig	2005-09-13 03:08:30.000000000 +0900
++++ mayavi	2011-03-18 17:52:19.837001956 +0900
+@@ -283,6 +283,7 @@
+ 
+ 
+ import Tkinter
++Tkinter.wantobjects = False
+ 
+ # Import this here to avoid hard-to-debug errors when importing VTK
+ # fails from within mayavi.Main.

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list