Closed nelsongraca closed 6 months ago
Hey there,
thanks for reaching out.
This seems to be related to upgrading the base images to python 3.12 in https://github.com/mkuf/prind/pull/125.
Python 3.12 removed setuptools
from the default packages when a venv is created, as described in https://github.com/python/cpython/issues/95299
This should imho be added to the klippy-requirements upstream to achieve compatibility w/ 3.12 and I'll create an PR in the next few days to get this into klipper.
-Markus
I can spare some time to submit the PR to Klipper if you don't mind.
Sure, go ahead 🙂
New PR on Klipper https://github.com/Klipper3d/klipper/pull/6557
@mkuf considering how long getting the fix on Klipper is taking, can we add the latest version of python-can as an extra dependency on the container build process and remove when this is fixed upstream?
I don't think its a good idea to upgrade a package that klipper depends on here instead of upstream.
As it was stated in your first PR, a viable workaround is to add setuptools without any version pinning to the venv.
I'll prepare a PR to add this to the klipper image.
PR has been merged. setuptools will be included with the next images built by the daily github action run.
I'll leave this issue open for now to observe process in your upstream PRs.
In the light of this issue and also https://github.com/mkuf/prind/issues/150, I decided that I will revert the klipper base image back to python 3.11, as it does seem that python 3.12 is a bit too bleeding edge for klipper and I favor reliability over up-to-dateness. For now, at least.
-Markus
Last few versions have been failing after updating the container with this error: Installing
setuptools
in the venv fixes this, not sure if this is an upstream problem or in the container.