https://issues.qgis.org/https://issues.qgis.org/favicon.ico2019-02-08T15:00:45ZQGIS Issue TrackingQGIS Application - Bug report #21210: GDAL python tools are broken in QGIS 3.4.4/masterhttps://issues.qgis.org/issues/21210?journal_id=997582019-02-08T15:00:45ZAlexander Bruy
<ul></ul><p>I can confirm on Windows with master/3.4, but errors are a slightly different. 3.4 complains about missed gdal_merge.bat, while in master it can not find gdal_merge.py</p> QGIS Application - Bug report #21210: GDAL python tools are broken in QGIS 3.4.4/masterhttps://issues.qgis.org/issues/21210?journal_id=997592019-02-08T15:11:01ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Alexander Bruy wrote:</p>
<blockquote>
<p>I can confirm on Windows with master/3.4, but errors are a slightly different. 3.4 complains about missed gdal_merge.bat, while in master it can not find gdal_merge.py</p>
</blockquote>
<p>confimed here the slightly different message.</p> QGIS Application - Bug report #21210: GDAL python tools are broken in QGIS 3.4.4/masterhttps://issues.qgis.org/issues/21210?journal_id=997692019-02-08T20:33:20ZNyall Dawson
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>So this is an osgeo4w packaging issue, right? Not qgis?</p> QGIS Application - Bug report #21210: GDAL python tools are broken in QGIS 3.4.4/masterhttps://issues.qgis.org/issues/21210?journal_id=997742019-02-09T10:12:11ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Nyall Dawson wrote:</p>
<blockquote>
<p>So this is an osgeo4w packaging issue, right? Not qgis?</p>
</blockquote>
<p>probably, but I'm afraid that at this point filing this bug only in the ogseo4w bug tracker will pass unnoticed and we will ship a new release with such important tools broken.</p> QGIS Application - Bug report #21210: GDAL python tools are broken in QGIS 3.4.4/masterhttps://issues.qgis.org/issues/21210?journal_id=997752019-02-09T10:12:17ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li></ul> QGIS Application - Bug report #21210: GDAL python tools are broken in QGIS 3.4.4/masterhttps://issues.qgis.org/issues/21210?journal_id=997812019-02-09T20:09:18ZNyall Dawson
<ul><li><strong>Category</strong> changed from <i>Processing/GDAL</i> to <i>Windows Package</i></li></ul> QGIS Application - Bug report #21210: GDAL python tools are broken in QGIS 3.4.4/masterhttps://issues.qgis.org/issues/21210?journal_id=997842019-02-10T08:06:19ZAlexander Bruy
<ul></ul><p>OSGeo4W ticket <a class="external" href="https://trac.osgeo.org/osgeo4w/ticket/594">https://trac.osgeo.org/osgeo4w/ticket/594</a></p> QGIS Application - Bug report #21210: GDAL python tools are broken in QGIS 3.4.4/masterhttps://issues.qgis.org/issues/21210?journal_id=997922019-02-10T16:46:08ZJürgen Fischerjef@norbit.de
<ul></ul><p>Giovanni Manghi wrote:</p>
<blockquote>
<p>'gdal_merge.bat' is not recognized as an internal or external command,</p>
</blockquote>
<p>Does <code>gdal_merge.bat</code> exist in <code>%OSGEO4W_ROOT%\bin</code>? Should have been created by <code>etc/postinstall/gdal-python.bat</code> (which runs <code>bin/make-bat-for-py.bat</code>) after <code>gdal-python</code> was installed.</p> QGIS Application - Bug report #21210: GDAL python tools are broken in QGIS 3.4.4/masterhttps://issues.qgis.org/issues/21210?journal_id=997932019-02-10T16:58:50ZJürgen Fischerjef@norbit.de
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul> QGIS Application - Bug report #21210: GDAL python tools are broken in QGIS 3.4.4/masterhttps://issues.qgis.org/issues/21210?journal_id=997952019-02-10T19:36:40ZJürgen Fischerjef@norbit.de
<ul></ul><p>Alexander Bruy wrote:</p>
<blockquote>
<p>I can confirm on Windows with master/3.4, but errors are a slightly different. 3.4 complains about missed gdal_merge.bat, while in master it can not find gdal_merge.py</p>
</blockquote>
<p>Oh, well. Findings so far: 3.4 runs the batch files which only <code>gdal-python</code> (GDAL Py2 bindings) provides - but it's didn't depend on it, because QGIS normally uses python3 - hence the batch files calls fail. It starts working once that is installed (and a dependency was added).</p>
<p>master was changed to run the scripts directly with python3 (see <a class="issue tracker-1 status-5 priority-4 priority- closed" href="https://issues.qgis.org/issues/20870" title="'gdal_fillnodata.bat' is not recognized as an internal or external command (Closed)">#20870</a>). That only helps if if the scripts are in the current working directory - but that usually <br />is <code>%OSGEO4W_ROOT%\bin</code>, which also happens to be where <code>gdal-python</code> puts the scripts - intended for py2, but not any different from those for py3. So with <code>gdal-python</code> scripts installed it should work there too - often.</p>
<p>My expectation was, that python would look in <code>PATH</code> or <code>PYTHONPATH</code> for script files - apparently not happening.</p> QGIS Application - Bug report #21210: GDAL python tools are broken in QGIS 3.4.4/masterhttps://issues.qgis.org/issues/21210?journal_id=997962019-02-10T20:34:29ZJürgen Fischerjef@norbit.de
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Applied in changeset <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/eea4eda6a35f1a06f84f198249b51b169144c46f" title="osgeo4w: fix b6293f23c8c (fixes #21210)">qgis|eea4eda6a35f1a06f84f198249b51b169144c46f</a>.</p>