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
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: mario.haustein
URL:
Whiteboard:
Keywords:
Depends on: 766914
Blocks:
  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: ---


Attachments

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/core.py", line 3285, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "/usr/lib64/grass82/gui/wxpython/wxgui.py", line 95, in show_main_gui
    mainframe = GMFrame(parent=None, id=wx.ID_ANY, workspace=self.workspaceFile)
  File "/usr/lib64/grass82/gui/wxpython/lmgr/frame.py", line 158, in __init__
    self._createDataCatalog(self.notebook)
  File "/usr/lib64/grass82/gui/wxpython/lmgr/frame.py", line 363, in _createDataCatalog
    self.datacatalog = DataCatalog(parent=parent, giface=self._giface)
  File "/usr/lib64/grass82/gui/wxpython/datacatalog/catalog.py", line 67, in __init__
    self.toolbar = DataCatalogToolbar(parent=self)
  File "/usr/lib64/grass82/gui/wxpython/datacatalog/toolbars.py", line 107, in __init__
    self.InitToolbar(self._toolbarData())
  File "/usr/lib64/grass82/gui/wxpython/gui_core/toolbars.py", line 127, in InitToolbar
    self.CreateTool(*tool)
  File "/usr/lib64/grass82/gui/wxpython/gui_core/toolbars.py", line 155, in CreateTool
    toolWin = self.AddLabelTool(
  File "/usr/lib64/grass82/gui/wxpython/gui_core/wrap.py", 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 https://github.com/OSGeo/grass/issues/2019. 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:

https://github.com/OSGeo/grass/issues/1971
https://github.com/OSGeo/grass/issues/2019

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.