Skip to content

Recent python:3.9-slim causing some libraries to break after removing --with-system-expat #984

Closed as not planned

Description

@mati-o

Hey, thanks for your great effort in this project and I apologize ahead if my issue is not an issue :).

With the recent 3.9-slim, after merging #980 , the --with-system-expat flag was removed along with libexpat-dev, this causes all my images to break since a requirement I use extensively , fiona, needs it.

Assuming this change is mandatory, I would be happy for a solution, workaround or whatever can help me get through it. Many thanks!

Activity

  1. mati-o commented on Oct 19, 2024

    @mati-o
    Author

    Found a workaround myself. From the README:

    Use this image and install any required Debian packages before running pip install.

    So I added to my dockerfile:

    RUN apt-get update && apt-get install libexpat1 -y

    Right after the FROM and the issue is gone.

    So, it can be closed if the removal of --with-system-expat was intentional

  2. BielStela commented on Oct 21, 2024

    @BielStela

    same issue with 3.12-slim and another geospatial library (GDAL). Fixed it by pinning to 3.12.6 but I guess the way to go is to explicitly install this kind of dependencies by hand in the dockerfile like