-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Python 3.12: error: PyLongObject {aka struct _longobject} has no member named ob_digit #2720
Comments
3.12 is still 6 months away from being released! That said thank you for the report. This is actually an issue with Cython. Cython optimizes access to certain CPython internals, so when an internal refactor like this occurs, Cython has to implement a complementary change. Discussion and fix here: cython/cython#5238 This is fixed in master for Cython and looks to be targeting the 3.0 milestone. Installing Cython 3.0.0b1 should resolve the problem for you on 3.12a5 and up. |
Folks on Fedora project have rebuilt the Cython generated code and it passed the build. |
Note that this is fixed in Cython 0.29.34, so regenerating the C sources with it should make it easier for folks who want to test peewee with Python 3.12 pre-releases before it is released (which is what we currently do in Fedora). |
The C sources aren't version-controlled but I typically include them when I release, so the next release will contain updated ones. Thanks. |
Peewee fails to build with Python 3.12.0a7.
GH-101291: Refactor the PyLongObject struct #101292
python/cpython#101292
https://docs.python.org/3.12/whatsnew/3.12.html
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=2192872
Thank you!
The text was updated successfully, but these errors were encountered: