[gdal-dev] Upgrade or remove Java JDK 17 in GDAL Docker image
Even Rouault
even.rouault at spatialys.com
Fri Sep 13 07:08:34 PDT 2024
> How can I resolve this error?
You have stripped too much of the logs. There must be some "error: "
compilation line before that points to the actual error.
>
> Alternatively, we have considered a different solution that uses
> ubuntu:22.04 as our base image and then installing GDAL but also
> having problems with installing GDAL (I can't seem to get past
> dependency conflicts for v3.8.5 in pipenv so trying v3.8.3), getting
> an error:
>
> Collecting gdal==3.8.3 (from -r
> /tmp/pipenv-gde160cj-requirements/pipenv-ndnw2zi0-hashed-reqs.txt
> (line 62))
> Downloading GDAL-3.8.3.tar.gz (802 kB)
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 802.5/802.5 kB 104.5
> MB/s eta 0:00:00
> Preparing metadata (setup.py): started
> Preparing metadata (setup.py): finished with status 'error'
> error: subprocess-exited-with-error
>
> × python setup.py egg_info did not run successfully.
> │ exit code: 1
>
> Exception: Python bindings of GDAL 3.8.3 require at least libgdal
> 3.8.3, but 3.4.1 was found
>
> How can we upgrade libgdal (in our Dockerfile)?
- Use another Docker image, like alpine-normal or ubuntu-small, that
doesn't have the Java dependency
- Use Conda to install GDAL
- Use plain ubuntu:24.04 that ships with GDAL 3.8.4 as a proper .deb
package (https://launchpad.net/ubuntu/noble/+source/gdal)
- ...
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240913/faf19f29/attachment.htm>
More information about the gdal-dev
mailing list