ASFHyP3 / hyp3-gamma

HyP3 plugin for generating SAR products with GAMMA
BSD 3-Clause "New" or "Revised" License
30 stars 7 forks source link

gdal 3.4.* is incompatible with update libxml2 requirements #421

Closed jacquelynsmale closed 1 year ago

jacquelynsmale commented 1 year ago

The bug

A recent update to libxml2 no longer allows the use of libxml2=2.9.11 or 2.9.12', which are the versions required bygdal>3.4,<3.5`. Build 22.04 required this pin.

To Reproduce

Either we can wait for gdal and libxml2 to resolve this issue or address the initial pinning. In either case, reverting develop to its previous successful build may be necessary.

asjohnston-asf commented 1 year ago

Agreed, this appears to be caused by the recent changes to the conda libxml2 recipe. I'm able to build the hyp3-gamma container without issue, since it installs everything via apt and pip rather than conda. When I build the docker container from develop, or when I inspect the currently latest build, I get:

gdal=3.4.1
libgdal=3.4.1
lxml=4.8.0
libxml2=2.9.13
icu=70.1

The conda recipes for these packages have a conflict, however. gdal=3.4.1 requires libgdal=3.4.1 requires icu=69.1, but libxml2=2.9.13 requires icu=70.1. I suspect previous builds were pulling in libxml2=2.9.12 to satisfy the environment, but new builds can't now that libxml2=2.9.12 has been marked broken in conda forge.