-
Notifications
You must be signed in to change notification settings - Fork 292
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
Build fails with Python 3.11 #144
Comments
Updating the traitlets dependency would probably fix this. |
Nope, that was a red herring, this failure is due to sapling itself, not traitlets. |
Here's a better error trace (with make -j1):
|
I can confirm this builds fine on Fedora 36 (which uses Python 3.10), so it's specifically Python 3.11 incompatibility. |
Looks like the Py_SIZE API has changed. From Python docs:
I think this is the least of the problems with the internal changes to the Python frame object handling: python/cpython#88756 TL;DR: the |
Not resolved. There are other users of |
Fixing Py_SIZE, it goes on with different issues:
later:
|
Summary: `pathencode` is only used by legacy revlog repos currently in tests. The C code does not compile with Python 3.11. Let's just drop the code with the hope that we can drop pathencode entirely once we cleaned up the tests. The feature still have a Python implementation so tests should still work. The Python `lowerencode` logic was updated to work correctly. Related: #144 Reviewed By: muirdm Differential Revision: D41446882 fbshipit-source-id: 05b0ca1117750ca095d9bd833f8a977d1a6bf453
Summary: The previous version generates code that does not compile with Python 3.11. Related: #144 Reviewed By: sggutier Differential Revision: D41447770 fbshipit-source-id: 1a58760a62a998d2f4b476fe29ee9a0bdcf95158
edit: Yep, works (after cleaning git worktree). |
Worked for me after |
This currently fails to build on Fedora Rawhide, which uses Python 3.11
The text was updated successfully, but these errors were encountered: