ERROR: wxGUI requires wxPython: Difference between revisions
Jump to navigation
Jump to search
(Initial FAQ) |
(Add more MacPorts instructions) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
'''Linux''' specific notes: | '''Linux''' specific notes: | ||
* Archlinux: | |||
** python-wxpython | |||
* Centos: | |||
** <code>sudo dnf install python-wxpython4</code> (or via software manager) | |||
* Debian: | |||
** the "grass-gui" package depends (automatically) on "python-wxgtk3.0" | |||
* Fedora: | * Fedora: | ||
** <code>sudo dnf install python3-wxpython4</code> (or via software manager) | ** <code>sudo dnf install python3-wxpython4</code> (or via software manager) | ||
* openSuSe: python3-wxPython, see discussion in https://forums.opensuse.org/showthread.php/542338-grass-7-8-from-the-science-package (and elsewhere - TODO: any better solution?) | |||
* openSuSe: | |||
** python3-wxPython needed, see discussion in https://forums.opensuse.org/showthread.php/542338-grass-7-8-from-the-science-package (and elsewhere - TODO: any better solution?) | |||
* Slackware: | |||
** please add | |||
* Ubuntu: | * Ubuntu: | ||
** <code>sudo apt-get install python3-wxgtk4.0</code> (or via software manager) | ** <code>sudo apt-get install python3-wxgtk4.0</code> (or via software manager) | ||
'''Mac''': | |||
* In case you are using MacPorts, install GRASS with <code>sudo port install grass +gui</code>. It is also possible to add only wxPython with e.g.<code>sudo port install py311-wxpython-4.0</code>, but you have to make sure you use the same Python version (in the example Python 3.11) as the GRASS installation. | |||
'''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): | '''Conda''' related notes (note that many user actually do not use conda): |
Latest revision as of 07:55, 28 September 2023
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)
- openSuSe:
- python3-wxPython needed, see discussion in https://forums.opensuse.org/showthread.php/542338-grass-7-8-from-the-science-package (and elsewhere - TODO: any better solution?)
- Slackware:
- please add
- Ubuntu:
sudo apt-get install python3-wxgtk4.0
(or via software manager)
Mac:
- In case you are using MacPorts, install GRASS with
sudo port install grass +gui
. It is also possible to add only wxPython with e.g.sudo port install py311-wxpython-4.0
, but you have to make sure you use the same Python version (in the example Python 3.11) as the GRASS installation.
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):
- Here a suggested solution with a virtual environment: https://stackoverflow.com/a/58902163/452464