-
Notifications
You must be signed in to change notification settings - Fork 167
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: TypeError: cannot create weak reference to 'typing.TypeVar' object #507
Comments
@musicinmybrain would you be interested in building cpython from the python/cpython#106403 branch by @encukou to check that this is enough for cloudpickle? |
That fixed the issues reported here, but there were others, and there was an abort related to a weak reference. Next I’ll try cherry-picking JelleZijlstra/cpython@df59646 onto |
Nope, it fails similarly to Python 3.13: test-py312.log Four tests fail,
and a traceback for a weakref-related segfault is printed during If I skip these four tests (
|
Pseudo-random ping to fellow cloudpickle contributors/maintainers: @mrocklin @jrbourbeau @jakirkham @robertnishihara @ueshin @HyukjinKwon @JoshRosen. This issue with Python 3.12 will likely be disruptive for your downstream projects / businesses if left unattended. But I am personally running a bit out of spare cycles to investigate and report to CPython developers what's the root cause of the regression. It would be great if some of you could have a look :) |
I tried to run the cloudpickle tests with a fresh new conda env running Python 3.12.0 from conda-forge on my macOS laptop and I can not reproduce the segfault when running the tests. Furthermore #514 has an updated CI that runs Python 3.12 on linux / windows / macos and all tests are green. I think we can close this issue. Thanks @musicinmybrain for your work with upstream. |
Sample test failure:
List of test failures:
Fedora Linux downstream issue
The
No module named 'distutils'
failures are a separate issue;distutils
is removed from the standard library in Python 3.12, and it is necessary to either port away from it or introduce an explicit dependency onsetuptools
, which still provides it.The text was updated successfully, but these errors were encountered: