Re: [Ubuntu] ubuntugis-unstable: gdal_merge.py missing? [PYTHON]PATH to be set?
Update will be available in ~1h. Regards, Angelos On 10/28/21 6:07 PM, Angelos Tzotsos wrote: Thanks Bas, I will cherry-pick. Regards, Angelos On 10/28/21 1:42 PM, Sebastiaan Couwenberg wrote: From the migration guide: " - "gdal/swig/python/scripts" moved to: "gdal/swig/python/gdal-utils/scripts" " See: https://github.com/OSGeo/gdal/blob/v3.3.2/gdal/MIGRATION_GUIDE.TXT gdal_merge.py is one of those scripts: $ find . -name "*gdal_merge*" ./swig/python/gdal-utils/osgeo_utils/gdal_merge.py ./swig/python/gdal-utils/scripts/gdal_merge.py ./man/man1/gdal_merge.1 These are manually installed in d/rules, see: https://salsa.debian.org/debian-gis-team/gdal/-/blob/debian/3.2.2+dfsg-2/debian/rules#L193 This was changed for 3.3, see: https://salsa.debian.org/debian-gis-team/gdal/-/blob/debian/3.3.2+dfsg-2/debian/rules#L196 But that's incorrect, it should be: swig/python/gdal-utils/scripts/*.py The fix was just pushed and will be included in the next 3.3.3 upload for Debian. https://salsa.debian.org/debian-gis-team/gdal/-/commit/84b9edd2ccc8bd28a4098ce913981de321554cfa This will need to be cherry-picked for the UbuntuGIS packages if they won't switch to 3.3.3 soon. Kind Regards, Bas -- Angelos Tzotsos, PhD President Open Source Geospatial Foundation http://users.ntua.gr/tzotsos ___ UbuntuGIS mailing list Ubuntu@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/ubuntu http://trac.osgeo.org/ubuntugis/wiki
Re: [Ubuntu] ubuntugis-unstable: gdal_merge.py missing? [PYTHON]PATH to be set?
The upcoming switch to CMake in GDAL 3.4 Not yet :-) The initial CMake version will be for GDAL 3.5. -- http://www.spatialys.com My software is free, but my time generally not. ___ UbuntuGIS mailing list Ubuntu@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/ubuntu http://trac.osgeo.org/ubuntugis/wiki
Re: [Ubuntu] ubuntugis-unstable: gdal_merge.py missing? [PYTHON]PATH to be set?
On 10/29/21 12:18, Martin Weis wrote: Am 28.10.21 um 12:42 schrieb Sebastiaan Couwenberg: But that's incorrect, it should be: swig/python/gdal-utils/scripts/*.py The fix was just pushed and will be included in the next 3.3.3 upload for Debian. WOW - thank you so much for the immediate response and fix! This will need to be cherry-picked for the UbuntuGIS packages if they won't switch to 3.3.3 soon. Is there any issue to be opened, or anything else I could help with? Angelos will include the change in the package for UbuntuGIS is mentioned on this list: https://lists.osgeo.org/pipermail/ubuntu/2021-October/001989.html Most important thing is solved (code, tech), now some processes may need some investments? About the only thing that could have prevented this issue is having more people review gdal packaging changes. The upcoming switch to CMake in GDAL 3.4 is a good time to re-evaluate much of the custom packaging rules and whether to keep that or rely on the buildsystem to do the right thing. A lot of these customizations stem from having to build gdal for more than only Python version. Now that python2 is EOL, we could decide to only support a single one like was done for mapserver. That way there may not be any need for buildsystem hacks, reducing the risk of bugs like this one. Kind Regards, Bas -- GPG Key ID: 4096R/6750F10AE88D4AF1 Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1 ___ UbuntuGIS mailing list Ubuntu@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/ubuntu http://trac.osgeo.org/ubuntugis/wiki
Re: [Ubuntu] ubuntugis-unstable: gdal_merge.py missing? [PYTHON]PATH to be set?
Thanks Bas, I will cherry-pick. Regards, Angelos On 10/28/21 1:42 PM, Sebastiaan Couwenberg wrote: From the migration guide: " - "gdal/swig/python/scripts" moved to: "gdal/swig/python/gdal-utils/scripts" " See: https://github.com/OSGeo/gdal/blob/v3.3.2/gdal/MIGRATION_GUIDE.TXT gdal_merge.py is one of those scripts: $ find . -name "*gdal_merge*" ./swig/python/gdal-utils/osgeo_utils/gdal_merge.py ./swig/python/gdal-utils/scripts/gdal_merge.py ./man/man1/gdal_merge.1 These are manually installed in d/rules, see: https://salsa.debian.org/debian-gis-team/gdal/-/blob/debian/3.2.2+dfsg-2/debian/rules#L193 This was changed for 3.3, see: https://salsa.debian.org/debian-gis-team/gdal/-/blob/debian/3.3.2+dfsg-2/debian/rules#L196 But that's incorrect, it should be: swig/python/gdal-utils/scripts/*.py The fix was just pushed and will be included in the next 3.3.3 upload for Debian. https://salsa.debian.org/debian-gis-team/gdal/-/commit/84b9edd2ccc8bd28a4098ce913981de321554cfa This will need to be cherry-picked for the UbuntuGIS packages if they won't switch to 3.3.3 soon. Kind Regards, Bas -- Angelos Tzotsos, PhD President Open Source Geospatial Foundation http://users.ntua.gr/tzotsos ___ UbuntuGIS mailing list Ubuntu@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/ubuntu http://trac.osgeo.org/ubuntugis/wiki
Re: [Ubuntu] ubuntugis-unstable: gdal_merge.py missing? [PYTHON]PATH to be set?
From the migration guide: " - "gdal/swig/python/scripts" moved to: "gdal/swig/python/gdal-utils/scripts" " See: https://github.com/OSGeo/gdal/blob/v3.3.2/gdal/MIGRATION_GUIDE.TXT gdal_merge.py is one of those scripts: $ find . -name "*gdal_merge*" ./swig/python/gdal-utils/osgeo_utils/gdal_merge.py ./swig/python/gdal-utils/scripts/gdal_merge.py ./man/man1/gdal_merge.1 These are manually installed in d/rules, see: https://salsa.debian.org/debian-gis-team/gdal/-/blob/debian/3.2.2+dfsg-2/debian/rules#L193 This was changed for 3.3, see: https://salsa.debian.org/debian-gis-team/gdal/-/blob/debian/3.3.2+dfsg-2/debian/rules#L196 But that's incorrect, it should be: swig/python/gdal-utils/scripts/*.py The fix was just pushed and will be included in the next 3.3.3 upload for Debian. https://salsa.debian.org/debian-gis-team/gdal/-/commit/84b9edd2ccc8bd28a4098ce913981de321554cfa This will need to be cherry-picked for the UbuntuGIS packages if they won't switch to 3.3.3 soon. Kind Regards, Bas -- GPG Key ID: 4096R/6750F10AE88D4AF1 Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1 ___ UbuntuGIS mailing list Ubuntu@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/ubuntu http://trac.osgeo.org/ubuntugis/wiki
[Ubuntu] ubuntugis-unstable: gdal_merge.py missing? [PYTHON]PATH to be set?
Hi, I am missing gdal_merge.py and wonder how to install it. It should either be in gdal-bin or python[3]-gdal according to what I could find out. apt-file lists it, maybe it got the source list from ubuntu version? apt-file search gdal_merge.py gdal-bin: /usr/bin/gdal_merge.py It is listed in the package for focal: https://packages.ubuntu.com/focal/amd64/gdal-bin/filelist I use ubuntugis-unstable: apt-cache policy gdal-bin > gdal-bin: > Installed: 3.3.2+dfsg-2~focal1 > Candidate: 3.3.2+dfsg-2~focal1 > Version table: > *** 3.3.2+dfsg-2~focal1 500 > 500 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu > focal/main amd64 Packages > 100 /var/lib/dpkg/status > 3.0.4+dfsg-1build3 500 > 500 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 Packages but it is not available in gdal-bin package of ubuntu-gis (only a bashcompletion file): dpkg -L gdal-bin| grep gdal_merge.py > /usr/share/bash-completion/completions/gdal_merge.py apt install python3-gdal # according to policy I get it from ubuntugis-unstable > python3-gdal is already the newest version (3.3.2+dfsg-2~focal1). dpkg -L python3-gdal| grep gdal_merge.py > /usr/lib/python3/dist-packages/osgeo_utils/gdal_merge.py ll /usr/lib/python3/dist-packages/osgeo_utils/gdal_merge.py > -rw-r--r-- 1 root root 17867 Sep 1 11:48 /usr/lib/python3/dist-packages/osgeo_utils/gdal_merge.py I finally want to be able to use it from within QGIS, there I get > GDAL command: > gdal_merge.py -ot Float32 -of GTiff -o > /tmp/processing_ncNmOZ/b09ba68e72f84752968b5d6641cbe792/OUTPUT.tif --optfile > /tmp/processing_ncNmOZ/e4c573d300fb448aba84c3cb97921d4b/mergeInputFiles.txt > GDAL command output: > Process gdal_merge.py failed to start. Either gdal_merge.py is missing, or > you may have insufficient permissions to run the program. > Execution failed after 0.13 seconds Since the file is not set executable (x), setting PATH or PYTHONPATH won't help. Do you have any suggestions how to integrate it correctly into the system? Thank you, Martin ___ UbuntuGIS mailing list Ubuntu@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/ubuntu http://trac.osgeo.org/ubuntugis/wiki