-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression : ModuleNotFoundError: No module named 'pkg_resources' on python:3.12-slim
#957
Comments
Thank you, didn´t see that. |
@Nastaliss I would also report the issue upstream to whatever package you are using that is importing ie: it needs to add setuptools to its Lastly, I notice in CyberCRI/projects-backend@39d1686 that you added both |
@LaurentGoderre we were running into this issue as well. We've come to use docker because of its reliabile reproduction of environments. While I understand why this change was made, an intentional change like this breaks every docker image that used I urge you to strongly reconsider whatever the decision making criteria is for making such changes. Luckily for us, we caught this when developing locally - I can imagine this being a bigger issue in a different scenario. |
Not that it helps your use-case (since you are obviously using one of the affected packages), but to be slightly more precise - it doesn't break every image - rather only those that are using a package that doesn't declare its dependencies properly (ie: packages that didn't add support for Python 3.12 properly when it was released last year). Such packages were already broken with Python 3.12 (and thus The only scenario that happened to work was using So whilst this might be momentarily painful for any projects both using the |
When using the
python:3.12-slim
image, we now face the following error :This was not the case two days ago.
It fails with
docker.io/library/python:3.12-slim@sha256:106893e6c2aadd9168cc9cb3d8a305ebee8c0aac200e9395a05421ae2be4ed3d
, but not withdocker.io/library/python:3.12-slim@sha256:59c7332a4a24373861c4a5f0eec2c92b87e3efeb8ddef011744ef9a751b1d11c
.The text was updated successfully, but these errors were encountered: