Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255108 - sci-visualization/mayavi-1.5 fix for newer python + typo fix
Summary: sci-visualization/mayavi-1.5 fix for newer python + typo fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-15 23:18 UTC by Colin Macdonald
Modified: 2009-01-16 09:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mayavi-1.5-tkinter_objects_fix.patch (mayavi-1.5-tkinter_objects_fix.patch,496 bytes, patch)
2009-01-15 23:20 UTC, Colin Macdonald
Details | Diff
mayavi-1.5.ebuild.patch (mayavi-1.5.ebuild.patch,598 bytes, patch)
2009-01-15 23:21 UTC, Colin Macdonald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Macdonald 2009-01-15 23:18:49 UTC
Mayavi-1.5 didn't work on my system:
Traceback (most recent call last):
  File "/usr/bin/mayavi", line 317, in <module>
    app = MayaViTkGUI (r)
  File "/usr/lib/python2.5/site-packages/mayavi/Main.py", line 1009, in __init__
    self.renwin = Misc.RenderWindow.RenderWindow (self.renwin_frame)
  File "/usr/lib/python2.5/site-packages/mayavi/Misc/RenderWindow.py", line 89, in __init__
    height=505)
  File "/usr/lib/python2.5/site-packages//vtk/tk/vtkTkRenderWidget.py", line 81, in __init__
    vtkLoadPythonTkWidgets(master.tk)
  File "/usr/lib/python2.5/site-packages/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()

Some googling suggested a fix to tell Tkinter not to use objects.  Will attach a patch.

Also, there was a typo in the installed desktop file: the title referred to mayavi2, I changed it to refer to mayavi1 instead.
Comment 1 Colin Macdonald 2009-01-15 23:20:52 UTC
Created attachment 178639 [details, diff]
mayavi-1.5-tkinter_objects_fix.patch

Here's the patch for the Tkinter object issue.
Comment 2 Colin Macdonald 2009-01-15 23:21:43 UTC
Created attachment 178640 [details, diff]
mayavi-1.5.ebuild.patch

patch for the ebuild.  Applies the above Tkinter patch and fixes the version number typo.
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2009-01-16 09:44:46 UTC
Fixed. Thanks!