[GRASS-user] Error launching GUI in Grass 7.8.1

Markus Neteler neteler at osgeo.org
Thu Nov 14 06:59:04 PST 2019


Hi Maris,

On Wed, Nov 13, 2019 at 7:00 PM Markus Neteler <neteler at osgeo.org> wrote:
> On Wed, Nov 13, 2019 at 4:20 PM Eric Patton
> > I upgraded my Grass version from 7.6.0 to 7.6.1 via the UbuntuGIS PPA in my package manager, and on launching the new version for the first time today, I get the following error:
...
> >   File "/usr/lib/grass78/gui/wxpython/gui_core/wrap.py", line 39, in <module>
> >     from wx import NewIdRef as NewId
> > ImportError: cannot import name 'NewIdRef'
> > ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
> > On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
> > To run GRASS GIS in text mode use the --text flag.
> > Use '--help' for further options
> >      grass78 --help
> > See also: https://grass.osgeo.org/grass78/manuals/helptext.html
> > Exiting...
> >
> >
> > I'm running it on Linux Mint 19.2, with gdal 2.4.2, proj 5.2.1, and wx libraries are 3.0.4. Running grass -text seems to be ok.
>
> There was this related change some time ago:
> https://github.com/OSGeo/grass/pull/155
> wxGUI: NewIdRef was added only in wxPyhton 4.0.3. Fix import for <4.0.3
>
> Apparently not enough?

in gui/wxpython/gui_core/wrap.py

`if wxPythonPhoenix and CheckWxVersion([4, 0, 3, 0]):`

... is it possible that this line still fails on Ubuntu/Mint with wx
libraries 3.0.4
?

Markus


More information about the grass-user mailing list