wxPython error when launching GRASS GUI

Pop OS 22.04
Grass 8.4 installed from Ubuntugis unstable

When I try to run GRASS from the desktop the GUI doesn’t open. Running the GUI from the command prompt returns an error related to wxpython.

g.gui wxpython
Launching <wxpython> GUI in the background, please wait...
Traceback (most recent call last):
  File "/home/fd/.local/lib/python3.10/site-packages/wx/core.py", line 3427, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "/usr/lib/grass84/gui/wxpython/wxgui.py", line 93, in show_main_gui
    mainframe = GMFrame(
  File "/usr/lib/grass84/gui/wxpython/main_window/frame.py", line 181, in __init__
    self.workspace_manager.CreateRecentFilesMenu(
  File "/usr/lib/grass84/gui/wxpython/lmgr/workspace.py", line 517, in CreateRecentFilesMenu
    file_menu = menu.GetMenu(
wx._core.wxAssertionError: C++ assertion ""node"" failed at /tmp/pip-install-tc2wnufu/wxpython_f265214d576c43a38803f2c0337cf814/ext/wxWidgets/src/common/menucmn.cpp(923) in GetMenu(): bad index in wxMenuBar::GetMenu()
GRASS tmpproject/PERMANENT:~ >

I upgraded wxpython from 4.2 to 4.2.2 but it didn’t solve the issue.

pip3 list | grep wxPython
wxPython                4.2.2

Hi,

this looks like a problem with menu creation but I don’t know why would that happen, maybe you somehow modified your local settings?. You can try to rename ~/.grass8/ folder with all the settings to e.g. .grass8_backup and try if the GUI starts.

BTW, this is not the right place to ask this, either create an issue on GitHub - OSGeo/grass: GRASS GIS - free and open-source geospatial processing engine or subscribe and ask on grass-user mailing list, which hasn’t been transitioned to Discourse yet.

1 Like

Sorry, feel free to delete this post.