Python 3.13 not supported by greenlet v3.0.3

Klipper depends on the pip package greenlet. For Python >= 3.12 Klipper forces v3.0.3. For this version of greenlet building fails on Python 3.13.
In this PR you can see that Python 3.13 support got added into greenlet on 4th Sept 2024 and got released with version v3.1.0, as you can see here.
Ubuntu 25 got released a few days ago and uses Python 3.13, therefore it does not support Klipper out of the box right now, as someone on the Mainsail Discord noticed.
Therefore I propose bumping the version, or add a specific version for Python >= 3.13.
I sadly did not and cannot test Klipper with greenlet v3.1.1 right now, so I post this here instead of mindlessly open up a PR.

I should have checked the PRs on the Klipper GitHub again, someone opened up a PR already: klippy: python 3.13 by nefelim4ag · Pull Request #6910 · Klipper3d/klipper · GitHub

Hello @Mr_Yel !

Anyhow, this would be a Python; greenlet, pip issue, not a Klipper bug.

Yes, but it’s fixed in greenlet, and Klipper is forcing the wrong version, therefore it’s a “bug” in Klipper, as it’s depending on the wrong version inside the klippy-requirements.txt
Please tell me where I should report such a thing next time and I will do it correctly. This seems to be the only place to report such issues with Klipper.

1 Like

This is the right place. Your approach was correct.

4 Likes