ERROR: wxGUI requires wxPython

From GRASS-Wiki
Revision as of 08:29, 6 May 2021 by Neteler (talk | contribs) (more distros added)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Q: I'm trying to start the graphical user interface but it tells me

ERROR: wxGUI requires wxPython. No module named 'wx'

A: The solution depends on the operating system in use. In general, the package "python3-wxPython" (naming may vary) is needed.

Things to verify:

  • do you use Anaconda? Please check if you have colliding Python versions. If not, read on below.

Linux specific notes:

  • Archlinux:
    • python-wxpython
  • Centos:
    • sudo dnf install python-wxpython4 (or via software manager)
  • Debian:
    • the "grass-gui" package depends (automatically) on "python-wxgtk3.0"
  • Fedora:
    • sudo dnf install python3-wxpython4 (or via software manager)
  • Slackware:
    • please add
  • Ubuntu:
    • sudo apt-get install python3-wxgtk4.0 (or via software manager)

Mac:

  • please add

Windows:

  • .. error should not happen since wxPython is included in the GRASS GIS Windows installer.

Conda related notes (note that many user actually do not use conda):