[Qgis-user] QGIS 3.4.2/GRASS

Martin Bittens martin.bittens at gmx.de
Mon Dec 10 10:08:46 PST 2018


Hello!

Today I made an update to QGIS 3.4.2 and now I can't use anymore the 
GRASS commands in the toolbox The following python error message appears 
when I try to open a GRASS command:

2018-12-10T16:00:28     WARNING    Traceback (most recent call last):
               File 
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py", 
line 223, in executeAlgorithm
               ok, message = alg.canExecute()
               File 
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py", 
line 1020, in canExecute
               message = Grass7Utils.checkGrassIsInstalled()
               File 
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", 
line 468, in checkGrassIsInstalled
               if Grass7Utils.installedVersion() is not None:
               File 
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", 
line 98, in installedVersion
               if Grass7Utils.grassBin() is None:
               File 
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", 
line 153, in grassBin
               path = Grass7Utils.grassPath()
               File 
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", 
line 212, in grassPath
               grassfolders = sorted([f for f in os.listdir(testfolder) 
if f.startswith("grass-7.") and os.path.isdir(os.path.join(testfolder, 
f))], reverse=True, key=lambda x: [int(v) for v in 
x[len("grass-"):].split('.')])
               File 
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", 
line 212, in
               grassfolders = sorted([f for f in os.listdir(testfolder) 
if f.startswith("grass-7.") and os.path.isdir(os.path.join(testfolder, 
f))], reverse=True, key=lambda x: [int(v) for v in 
x[len("grass-"):].split('.')])
               File 
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", 
line 212, in
               grassfolders = sorted([f for f in os.listdir(testfolder) 
if f.startswith("grass-7.") and os.path.isdir(os.path.join(testfolder, 
f))], reverse=True, key=lambda x: [int(v) for v in 
x[len("grass-"):].split('.')])
              ValueError: invalid literal for int() with base 10: 'svn'


The GRASS plug-in is working (with GRASS 7.4.2). I am running a Windows 
10 machine.

Does anybody know how to solve the problem?

Thank very much


Martin


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



More information about the Qgis-user mailing list