[Qgis-user] QGIS 3.4.2/GRASS

Luigi Pirelli luipir at gmail.com
Mon Dec 10 10:48:16 PST 2018


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
https://issues.qgis.org/projects/qgis/issues/new

the fix is simple, but please share more about what is your qgis
installation and grass configuration

regards

Luigi Pirelli

**************************************************************************************************
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
*
https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
* Hire me: http://goo.gl/BYRQKg
**************************************************************************************************


On Mon, 10 Dec 2018 at 19:09, Martin Bittens <martin.bittens at gmx.de> wrote:

> 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
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20181210/e3d28ca1/attachment.html>


More information about the Qgis-user mailing list