<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Luigi Pirelli,</p>
    <p>thank you so much for your hints.</p>
    <p>My QGIS 3.4.2 /GRASS installation is as follows:</p>
    <p>PATH=C:\OSGEO4~1\apps\qgis\bin;C:\OSGEO4~1\apps\grass\grass-7.4.2\lib;C:\OSGEO4~1\apps\grass\grass-7.4.2\bin;C:\OSGEO4~1\apps\Python37;C:\OSGEO4~1\apps\Python37\Scripts;C:\OSGEO4~1\apps\qt5\bin;C:\Rtools\bin;C:\Rtools\mingw_32\bin;C:\Rtools\mingw_64\bin;C:\Program
      Files\MiKTeX
2.9\miktex\bin;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program
      Files\R\R-3.4.4\bin\x64;C:\Program Files\RStudio\bin<br>
      GDAL_DATA=C:\OSGEO4~1\share\gdal<br>
      GDAL_DRIVER_PATH=C:\OSGEO4~1\bin\gdalplugins<br>
      GDAL_FILENAME_IS_UTF8=YES<br>
      GEOTIFF_CSV=C:\OSGEO4~1\share\epsg_csv<br>
      GISBASE=C:\OSGEO4~1\apps\grass\grass-7.4.2<br>
      GRASS_PROJSHARE=C:\OSGEO4~1\share\proj<br>
      GRASS_PYTHON=C:\OSGEO4~1\bin\python.exe<br>
      JPEGMEM=1000000<br>
      OSGEO4W_ROOT=C:\OSGEO4~1<br>
      PROJ_LIB=C:\OSGEO4~1\share\proj<br>
      PYTHONHOME=C:\OSGEO4~1\apps\Python37<br>
      QGIS_PREFIX_PATH=C:/OSGEO4~1/apps/qgis<br>
QT_PLUGIN_PATH=C:\OSGEO4~1\apps\qgis\qtplugins;C:\OSGEO4~1\apps\qt5\plugins<br>
      QT_RASTER_CLIP_LIMIT=4096<br>
      VSI_CACHE=TRUE<br>
      VSI_CACHE_SIZE=1000000<br>
      O4W_QT_PREFIX=C:/OSGEO4~1/apps/Qt5<br>
      O4W_QT_BINARIES=C:/OSGEO4~1/apps/Qt5/bin<br>
      O4W_QT_PLUGINS=C:/OSGEO4~1/apps/Qt5/plugins<br>
      O4W_QT_LIBRARIES=C:/OSGEO4~1/apps/Qt5/lib<br>
      O4W_QT_TRANSLATIONS=C:/OSGEO4~1/apps/Qt5/translations<br>
      O4W_QT_HEADERS=C:/OSGEO4~1/apps/Qt5/include</p>
    <p>I am not sure if these settings are those you want to see. If you
      do need more, please let me know. <br>
    </p>
    <p>As far as I understood the QGIS 3.4.2 settings GRASS 7.4.2 should
      be used. After I read your comment on the path issues I checked
      the /apps/grass folder. 3 different versions are installed there:</p>
    <p>grass-6.4.3</p>
    <p>grass-7.4.2</p>
    <p>grass-7.7.svn</p>
    <p>In accordance to your advice I removed the .svn term from the
      GRASS 7.7 folder name and - it works. I can use now the GRASS
      commands in QGIS 3.4.2. Additionally I changed in the same way the
      folder name in the grass77svn.bat and the related env.bat using
      GRASS 7.7.svn as a stand-alone application as well. <br>
    </p>
    <p>I am  wondering which GRASS version QGIS 3.4.2 actually is using?
      Unfortunately in the QGIS 3.4.2 menu
      Settings/Options/Processing/Providers/GRASS there is no longer an
      option available that allows to define the path to the correct
      GRASS version (as it was in QGIS 3.2.1 - which was my last QGIS 3
      version). <br>
    </p>
    <p>Best regards</p>
    <p>Martin<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Am 12/10/2018 um 4:48 PM schrieb Luigi
      Pirelli:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFO80_rH7iM7ggNa37E2A05xE1-iYOi8RxstT1N1E0-+hETs0A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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"
            moz-do-not-send="true">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" moz-do-not-send="true">https://www.linkedin.com/in/luigipirelli</a><br>
              * Stackexchange: <a
                href="http://gis.stackexchange.com/users/19667/luigi-pirelli"
                target="_blank" moz-do-not-send="true">http://gis.stackexchange.com/users/19667/luigi-pirelli</a><br>
              * GitHub: <a href="https://github.com/luipir"
                target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">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"
                moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">https://www.avast.com/antivirus</a><br>
          <br>
          _______________________________________________<br>
          Qgis-user mailing list<br>
          <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank"
            moz-do-not-send="true">Qgis-user@lists.osgeo.org</a><br>
          List info: <a
            href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
            rel="noreferrer" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote>
      </div>
    </blockquote>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
        <td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link" target="_blank" style="color: #4453ea;">www.avast.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>