Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858548 - sci-geosciences/grass-8.2.0[X] wxGUI needs >=dev-python/wxpython-4.1.x
Summary: sci-geosciences/grass-8.2.0[X] wxGUI needs >=dev-python/wxpython-4.1.x
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: mario.haustein
Depends on: 766914
  Show dependency tree
Reported: 2022-07-17 08:28 UTC by Ulf Norberg
Modified: 2022-07-19 21:17 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Ulf Norberg 2022-07-17 08:28:55 UTC
Attempting to start wxGUI in I sci-geosciences/grass-8.2.0-r1 fails:

GRASS world_latlong_wgs84/PERMANENT:~ > g.gui wxpython
Launching <wxpython> GUI in the background, please wait...
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/wx/", line 3285, in <lambda>
    lambda event: event.callable(*event.args, ** )
  File "/usr/lib64/grass82/gui/wxpython/", line 95, in show_main_gui
    mainframe = GMFrame(parent=None, id=wx.ID_ANY, workspace=self.workspaceFile)
  File "/usr/lib64/grass82/gui/wxpython/lmgr/", line 158, in __init__
  File "/usr/lib64/grass82/gui/wxpython/lmgr/", line 363, in _createDataCatalog
    self.datacatalog = DataCatalog(parent=parent, giface=self._giface)
  File "/usr/lib64/grass82/gui/wxpython/datacatalog/", line 67, in __init__
    self.toolbar = DataCatalogToolbar(parent=self)
  File "/usr/lib64/grass82/gui/wxpython/datacatalog/", line 107, in __init__
  File "/usr/lib64/grass82/gui/wxpython/gui_core/", line 127, in InitToolbar
  File "/usr/lib64/grass82/gui/wxpython/gui_core/", line 155, in CreateTool
    toolWin = self.AddLabelTool(
  File "/usr/lib64/grass82/gui/wxpython/gui_core/", line 539, in AddLabelTool
    return wx.ToolBar.AddTool(
TypeError: ToolBar.AddTool(): arguments did not match any overloaded call:
  overload 1: 'toolId' is not a valid keyword argument
  overload 2: argument 'toolId' has unexpected type 'WindowIDRef'
  overload 3: argument 'toolId' has unexpected type 'WindowIDRef'

Looks similar to As a workaround, using dev-python/wxpython-4.2.0_p20220629:4.0::stefantalpalaru from bug 766914, comment 6 I was able to start the GUI.
Comment 1 mario.haustein 2022-07-19 21:17:53 UTC
The issue was already reported upstream:

It seems that only installations with Python version 3.10 are affected whereas Python 3.9 works. Nevertheless we need an update of wxPython. We have to wait on #766914 to get this issue fixed.