<div dir="ltr"><div dir="ltr">processing Grass7Utils.py is trying to understand the grass folders assuming that the path is something like grass-<dot version as 7.4>... in your case this path is grass-svn => bang! trying to convert it as int! it's, I'm almost sure, a bug... can you fill an issue in <a href="https://issues.qgis.org/projects/qgis/issues/new">https://issues.qgis.org/projects/qgis/issues/new</a></div><div dir="ltr"><br></div><div>the fix is simple, but please share more about what is your qgis installation and grass configuration</div><div><br></div><div>regards</div><div dir="ltr"><br clear="all"><div><div dir="ltr" class="gmail_signature">Luigi Pirelli<br><br>**************************************************************************************************<br>* LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" target="_blank">https://www.linkedin.com/in/luigipirelli</a><br>* Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" target="_blank">http://gis.stackexchange.com/users/19667/luigi-pirelli</a><br>* GitHub: <a href="https://github.com/luipir" target="_blank">https://github.com/luipir</a><br>* Mastering QGIS 2nd Edition:<br>* <a href="https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition" target="_blank">https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition</a><br>* Hire me: <a href="http://goo.gl/BYRQKg" target="_blank">http://goo.gl/BYRQKg</a><br>**************************************************************************************************</div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 10 Dec 2018 at 19:09, Martin Bittens <<a href="mailto:martin.bittens@gmx.de">martin.bittens@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br>
<br>
Today I made an update to QGIS 3.4.2 and now I can't use anymore the <br>
GRASS commands in the toolbox The following python error message appears <br>
when I try to open a GRASS command:<br>
<br>
2018-12-10T16:00:28     WARNING    Traceback (most recent call last):<br>
               File <br>
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py", <br>
line 223, in executeAlgorithm<br>
               ok, message = alg.canExecute()<br>
               File <br>
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Algorithm.py", <br>
line 1020, in canExecute<br>
               message = Grass7Utils.checkGrassIsInstalled()<br>
               File <br>
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", <br>
line 468, in checkGrassIsInstalled<br>
               if Grass7Utils.installedVersion() is not None:<br>
               File <br>
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", <br>
line 98, in installedVersion<br>
               if Grass7Utils.grassBin() is None:<br>
               File <br>
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", <br>
line 153, in grassBin<br>
               path = Grass7Utils.grassPath()<br>
               File <br>
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", <br>
line 212, in grassPath<br>
               grassfolders = sorted([f for f in os.listdir(testfolder) <br>
if f.startswith("grass-7.") and os.path.isdir(os.path.join(testfolder, <br>
f))], reverse=True, key=lambda x: [int(v) for v in <br>
x[len("grass-"):].split('.')])<br>
               File <br>
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", <br>
line 212, in<br>
               grassfolders = sorted([f for f in os.listdir(testfolder) <br>
if f.startswith("grass-7.") and os.path.isdir(os.path.join(testfolder, <br>
f))], reverse=True, key=lambda x: [int(v) for v in <br>
x[len("grass-"):].split('.')])<br>
               File <br>
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\grass7\Grass7Utils.py", <br>
line 212, in<br>
               grassfolders = sorted([f for f in os.listdir(testfolder) <br>
if f.startswith("grass-7.") and os.path.isdir(os.path.join(testfolder, <br>
f))], reverse=True, key=lambda x: [int(v) for v in <br>
x[len("grass-"):].split('.')])<br>
              ValueError: invalid literal for int() with base 10: 'svn'<br>
<br>
<br>
The GRASS plug-in is working (with GRASS 7.4.2). I am running a Windows <br>
10 machine.<br>
<br>
Does anybody know how to solve the problem?<br>
<br>
Thank very much<br>
<br>
<br>
Martin<br>
<br>
<br>
---<br>
This email has been checked for viruses by Avast antivirus software.<br>
<a href="https://www.avast.com/antivirus" rel="noreferrer" target="_blank">https://www.avast.com/antivirus</a><br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>