Bug 2328024 - python-cloudpickle fails to build with Python 3.14: CloudPickleFileTests.test_empty_file: RecursionError: maximum recursion depth exceeded in comparison
Summary: python-cloudpickle fails to build with Python 3.14: CloudPickleFileTests.test...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cloudpickle
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2024-11-22 12:16 UTC by Karolina Surma
Modified: 2024-12-10 12:59 UTC (History)
6 users (show)

Fixed In Version: python-cloudpickle-3.1.0-2.fc42
Clone Of:
Environment:
Last Closed: 2024-12-10 12:59:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources python-cloudpickle pull-request 15 0 None None None 2024-12-10 12:59:42 UTC
Github cloudpipe cloudpickle issues 544 0 None open Test failure with Python 3.14 alpha 2 2024-11-25 06:15:10 UTC

Description Karolina Surma 2024-11-22 12:16:44 UTC
python-cloudpickle fails to build with Python 3.14.0a2.

_____________________ CloudPickleFileTests.test_empty_file _____________________
self = <cloudpickle.cloudpickle.Pickler object at 0x7f5616c94220>
obj = <_io.TextIOWrapper name='/tmp/tmpfi2sfxwg/testfile' mode='r' encoding='UTF-8'>
    def dump(self, obj):
        try:
>           return super().dump(obj)
cloudpickle/cloudpickle.py:1295: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
cloudpickle/cloudpickle.py:1380: in reducer_override
    return self._function_reduce(obj)
cloudpickle/cloudpickle.py:1258: in _function_reduce
    return self._dynamic_function_reduce(obj)
cloudpickle/cloudpickle.py:1243: in _dynamic_function_reduce
    state = _function_getstate(func)
cloudpickle/cloudpickle.py:719: in _function_getstate
    f_globals_ref = _extract_code_globals(func.__code__)
cloudpickle/cloudpickle.py:307: in _extract_code_globals
    out_names = _extract_code_globals_cache.get(co)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <WeakKeyDictionary at 0x7f56178d3a80>
key = <code object _make_function at 0x7f5617715e90, file "/builddir/build/BUILD/python-cloudpickle-3.1.0-build/cloudpickle-3.1.0/cloudpickle/cloudpickle.py", line 505>
default = None
    def get(self, key, default=None):
>       return self.data.get(ref(key),default)
E       RecursionError: maximum recursion depth exceeded in comparison
E       when serializing function reconstructor
E       when serializing function object
E       when serializing function reconstructor
E       when serializing function object
E       when serializing function reconstructor
E       when serializing function object

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08300722-python-cloudpickle/

For all our attempts to build python-cloudpickle with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-cloudpickle/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Lumír Balhar 2024-11-25 06:15:11 UTC
Reported upstream.


Note You need to log in before you can comment on or make changes to this bug.