[osgeo4w-dev] grass8 needs proj82-runtime

Andrea Giudiceandrea andreaerdna at libero.it
Fri Apr 29 03:33:19 PDT 2022

Posted here because https://trac.osgeo.org/osgeo4w/ seems not working.

Installing GRASS 8 (grass8 8.0.1-2), without also installing QGIS, leads 
to the following error unsuccessfully trying to launch it:

Sto avviando GRASS GIS...
ATTENZIONE: Il locking concorrente del mapset non è supportato in Windows.
Eliminando i file temporanei...

           __________  ___   __________    _______________
          / ____/ __ \/   | / ___/ ___/   / ____/  _/ ___/
         / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
        / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
        \____/_/ |_/_/  |_/____/____/   \____/___//____/

Benvenuto in GRASS GIS8.0.1
Homepage di GRASS GIS:                   https://grass.osgeo.org
Questa versione è eseguita tramite:      Command Prompt 
Help is available with the command:      g.manual -i
VIsualizza i termini di licenza con:     g.version -c
See citation options with:               g.version -x
Se necessario, riavvia la GUI con:       g.gui wxpython
Per uscire digitare:                     exit

Sto avviando <wxpython> GUI in background, attendere prego...
Microsoft Windows [Versione 10.0.18362.778]
(c) 2019 Microsoft Corporation. Tutti i diritti sono riservati.

C:\Users\giudiceandrea\Documents>wxnviz.py: Could not load grass_g3d.8.0.
wxdigit.py: Could not load grass_vector.8.0.
wxdigit.py: Could not load grass_vector.8.0.
Traceback (most recent call last):
   File "C:\OSC726~1\apps\Python39\lib\site-packages\wx\core.py", line 
3407, in <lambda>
     lambda event: event.callable(*event.args, **event.kw) )
   File "C:\OSC726~1\apps\grass\grass80\gui\wxpython\wxgui.py", line 88, 
in show_main_gui
     mainframe = GMFrame(parent=None, id=wx.ID_ANY, 
   File "C:\OSC726~1\apps\grass\grass80\gui\wxpython\lmgr\frame.py", 
line 156, in __init__
   File "C:\OSC726~1\apps\grass\grass80\gui\wxpython\lmgr\frame.py", 
line 379, in _createConsole
     self.goutput = GConsoleWindow(
"C:\OSC726~1\apps\grass\grass80\gui\wxpython\gui_core\goutput.py", line 
127, in __init__
     self.cmdPrompt = GPromptSTC(
"C:\OSC726~1\apps\grass\grass80\gui\wxpython\gui_core\prompt.py", line 
155, in __init__
     GPrompt.__init__(self, parent=parent, giface=giface, 
"C:\OSC726~1\apps\grass\grass80\gui\wxpython\gui_core\prompt.py", line 
57, in __init__
     self.mapList = self._getListOfMaps()
"C:\OSC726~1\apps\grass\grass80\gui\wxpython\gui_core\prompt.py", line 
114, in _getListOfMaps
     result["raster"] = grass.list_strings("raster")
"C:\OSC726~1\apps\grass\grass80\etc\python\grass\script\core.py", line 
1462, in list_strings
     for line in read_command(
"C:\OSC726~1\apps\grass\grass80\etc\python\grass\script\core.py", line 
606, in read_command
     return handle_errors(returncode, stdout, args, kwargs)
"C:\OSC726~1\apps\grass\grass80\etc\python\grass\script\core.py", line 
429, in handle_errors
     raise CalledModuleError(module=module, code=code, 
grass.exceptions.CalledModuleError: Module run `g.list --q -m 
type=raster` ended with an error.
The subprocess ended with a non-zero return code: 3221225781. See errors 
above the traceback or in the error output.

It seems to me this is due to the the fact that the package 
proj82-runtime is not listed in the grass8 dependencies, while 
proj_8_2.dll is needed by libgrass_gproj.8.0.dll.

Manually installing proj82-runtime fixes the issue and then it is 
possible to successfully launch GRASS 8.

When qgis* is installed alongside grass8, then the issue doesn't occur 
because proj82-runtime is automatically installed as a dependency of 
python3-pyproj (why pyproj needs PROJ 8 and not PROJ 9?) which in turns 
is automatically installed as a dependency of qgis*.

More information about the osgeo4w-dev mailing list