homebrew-osgeo4mac: Can't run GRASS GIS gui because wxpython error

Hi,

Last week I upgraded QGIS and GRASS GIS. With QGIS I run in an issue I could solve (https://github.com/OSGeo/homebrew-osgeo4mac/issues/1245), but then I tried to run GRASS GIS gui I got stuck. GRASS GIS itself run and can be manage, but when I try to run the gui I get:

Launching <wxpython> GUI in the background, please wait...
ERROR: wxGUI requires wxPython. No module named _core_
You can still use GRASS GIS modules in the command line or in Python.

This issue had been described before (https://github.com/OSGeo/homebrew-osgeo4mac/issues/228#issuecomment-506730879), but I couldn’t successfully apply the solution.

I have some issues with unlinked formulas in brew doctor and my path is:

/usr/local/opt/sqlite/bin:/usr/local/sbin:/usr/local/opt/gdal2/bin:/Users/alazaro/.jenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/MacGPG2/bin:/usr/local/share/dotnet:/opt/X11/bin

I didn’t try to build it from source though. Could it be an issue from the formula? Thank you in advance.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 23 (13 by maintainers)

Most upvoted comments

The formula still uses GRASS GIS 7.6.x with Python 2:

https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/Formula/osgeo-grass.rb#L16

It might be worthwhile to update to GRASS GIS 7.8 with Python 3 support.

@pat-s Yes, I also had to do the same. For some reason, the wx module when installing wxpython does not appear in /usr/local/lib/python3.7/site-packages, but if it appears for @alazarolop, then it must be something of each machine. I can have wxpython installed in /usr/local/Cellar/osgeo-grass/7.8.2/libexec/vendor/lib/python3.7/site-packages/.

Works for me after installing wxpython via pip3.