Dear FSL folks,
We have got a report, and reproduced it, in Debian testing/sid fsleyes
the following issue. I didn't check if that is wx library regression. The code in question is
> /usr/lib/python2.7/dist-packages/fsleyes/frame.py(1605)__refreshToolsMenu()
-> menu.Remove(item)
(Pdb) l
1600 menu = self.__toolsMenu
1601
1602 # Remove all old tools
1603 for vpType, items in list(self.__viewPanelTools.items()):
1604 for item, tool in items:
1605 -> menu.Remove(item)
and passing item.Id instead of plain "item" seems to provide remedy.
Since I am not verse in wx, so decided just to report/ask on the correct fix.
fsleyes version is 0.15.1-2~nd+1 and python-wxgtk3.0 is 3.0.2.0+dfsg-5
Here is the original report with details:
On Mon, 20 Nov 2017, marco tettamanti wrote:
> Dear neurodebianers,
> the functionality of the FSLeyes version currently installed on my Debian
> testing distribution is greatly impaired.
> Any attempts to open multiple Views (e.g. 'Ortho View' + 'Time series') seem to
> fail: a small icon/square appears on the top-left corner, just below the text
> menu, but it is not possible to interact with this icon in any manner that would
> lead to visible secondary views.
> Upon selecting a secondary view, I get the following error message in the
> terminal window:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/fsleyes/actions/base.py", line 128, in
> __call__
> return self.__func(*args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/fsleyes/actions/frameactions.py", line
> 50, in addTimeSeriesPanel
> addViewPanel(self, TimeSeriesPanel)
> File "/usr/lib/python2.7/dist-packages/fsleyes/actions/frameactions.py", line
> 23, in addViewPanel
> vp = self.addViewPanel(vpType, **kwargs)
> File "/usr/lib/python2.7/dist-packages/fsleyes/frame.py", line 475, in
> addViewPanel
> self.__addViewPanelMenu( panel, title)
> File "/usr/lib/python2.7/dist-packages/fsleyes/frame.py", line 687, in
> __addViewPanelMenu
> self.__refreshToolsMenu()
> File "/usr/lib/python2.7/dist-packages/fsleyes/frame.py", line 1605, in
> __refreshToolsMenu
> menu.Remove(item)
> File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 12089,
> in Remove
> return _core_.Menu_Remove(*args, **kwargs)
> TypeError: in method 'Menu_Remove', expected argument 2 of type 'int'
--
Yaroslav O. Halchenko
Center for Open Neuroscience http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik
|