[Osgeo4w-trac] [osgeo4w] #594: GDAL Python scripts can not be run
OSGeo4W
trac_osgeo4w at osgeo.org
Sun Feb 10 00:06:37 PST 2019
#594: GDAL Python scripts can not be run
---------------------+---------------------------------
Reporter: alexbruy | Owner: osgeo4w-dev@…
Type: defect | Status: new
Priority: major | Component: Package
Version: | Keywords: gdal,python,scripts
---------------------+---------------------------------
Looks like there is something wrong with GDAL Python scripts (e.g.
gdal_merge.py, gdal_calc.py etc) setup in OSGeo4W.
When trying to run any of the Processing tools in QGIS which are based on
GDAL Python scripts, they fails with message saying that corresponding
GDAL script is not found. Same happens with trying to run them from the
OSGeo4W shell directly.
Here is steps to reproduce using OSGeo4W shell:
1. open OSGeo4W shell
2. setup Python by running py3_env.bat
3. try to execute for example gdal_calc.py with
{{{
python gdal_calc.py
}}}
4. execution failed with error
{{{
C:\>python gdal_calc.py
(null): can't open file 'gdal_calc.py': [Errno 2] No such file or
directory
}}}
Same error when running gdal_calc.py from QGIS Processing.
Related QGIS issue https://issues.qgis.org/issues/21210
--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/594>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the Osgeo4w-trac
mailing list