python-dill fails to build with Python 3.15.0a1. Exception ignored while calling deallocator <function IOBase.__del__ at 0x7f5d27848f60>: Traceback (most recent call last): File "/usr/lib64/python3.15/_pyio.py", line 411, in __del__ File "/usr/lib64/python3.15/_pyio.py", line 1631, in _dealloc_warn ImportError: sys.meta_path is None, Python is likely shutting down ..............Traceback (most recent call last): File "/builddir/build/BUILD/python-dill-0.4.0-build/BUILDROOT/usr/lib/python3.15/site-packages/dill/_dill.py", line 1037, in _getattr attr = repr_str.split("'")[3] ~~~~~~~~~~~~~~~~~~~^^^ IndexError: list index out of range During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/python-dill-0.4.0-build/BUILDROOT/usr/lib/python3.15/site-packages/dill/_dill.py", line 1043, in _getattr attr = attr[name] ~~~~^^^^^^ KeyError: '__weakref__' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/python-dill-0.4.0-build/dill-0.4.0/dill/tests/test_dataclasses.py", line 35, in <module> test_dataclasses() ~~~~~~~~~~~~~~~~^^ File "/builddir/build/BUILD/python-dill-0.4.0-build/dill-0.4.0/dill/tests/test_dataclasses.py", line 29, in test_dataclasses after = dill.loads(save) File "/builddir/build/BUILD/python-dill-0.4.0-build/BUILDROOT/usr/lib/python3.15/site-packages/dill/_dill.py", line 312, in loads return load(file, ignore, **kwds) File "/builddir/build/BUILD/python-dill-0.4.0-build/BUILDROOT/usr/lib/python3.15/site-packages/dill/_dill.py", line 298, in load return Unpickler(file, ignore=ignore, **kwds).load() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/builddir/build/BUILD/python-dill-0.4.0-build/BUILDROOT/usr/lib/python3.15/site-packages/dill/_dill.py", line 453, in load obj = StockUnpickler.load(self) File "/builddir/build/BUILD/python-dill-0.4.0-build/BUILDROOT/usr/lib/python3.15/site-packages/dill/_dill.py", line 1047, in _getattr attr = getattr(objclass,name) AttributeError: type object 'object' has no attribute '__weakref__' F.<function <lambda> at 0x7f1956d89bc0> <function <lambda> at 0x7f04659c5bc0> <function <lambda> at 0x7f842b0e1bc0> <function <lambda> at 0x7fe90d0c1d20> <function <lambda> at 0x7f8924629bc0> .. https://docs.python.org/3.15/whatsnew/3.15.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/09789892-python-dill/ For all our attempts to build python-dill with Python 3.15, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-dill/ 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.15: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/ Let us know here if you have any questions. Python 3.15 is planned to be included in Fedora 45. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15. 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.