docker-library / python

Docker Official Image packaging for Python
https://www.python.org/
MIT License
2.55k stars 1.07k forks source link

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

Open mati-o opened 2 hours ago

mati-o commented 2 hours ago

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!

mati-o commented 2 hours ago

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