python-BTrees fails to build with Python 3.13.0a2. + /usr/bin/python3 -m tox --current-env -q --recreate -e py313 /usr/lib/python3.13/site-packages/pkg_resources/__init__.py:2866: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) /usr/lib/python3.13/site-packages/pkg_resources/__init__.py:2866: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) /usr/lib/python3.13/site-packages/pkg_resources/__init__.py:2866: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze.sphinx')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) /usr/lib/python3.13/site-packages/pkg_resources/__init__.py:2345: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('repoze')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(parent) Running tests at level 1 Running zope.testrunner.layer.UnitTests tests: Set up zope.testrunner.layer.UnitTests in 0.000 seconds. Running: ..Traceback (most recent call last): File "/usr/bin/zope-testrunner", line 8, in <module> sys.exit(run()) ^^^^^ File "/usr/lib/python3.13/site-packages/zope/testrunner/__init__.py", line 31, in run failed = run_internal(defaults, args, script_parts=script_parts, cwd=cwd, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/zope/testrunner/__init__.py", line 55, in run_internal runner.run() File "/usr/lib/python3.13/site-packages/zope/testrunner/runner.py", line 191, in run self.run_tests() File "/usr/lib/python3.13/site-packages/zope/testrunner/runner.py", line 292, in run_tests self.ran += run_layer(self.options, layer_name, layer, tests, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/zope/testrunner/runner.py", line 473, in run_layer return run_tests(options, tests, layer_name, failures, errors, skipped, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/zope/testrunner/runner.py", line 399, in run_tests test(result) File "/usr/lib64/python3.13/unittest/case.py", line 692, in __call__ return self.run(*args, **kwds) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/unittest/case.py", line 662, in run result.stopTest(self) File "/usr/lib/python3.13/site-packages/zope/testrunner/runner.py", line 1023, in stopTest test.__dict__.update(self._test_state) ^^^^^^^^^^^^^^^^ AttributeError: 'TestResult' object has no attribute '_test_state' ......py313: exit 1 (0.96 seconds) /builddir/build/BUILD/BTrees-5.1> zope-testrunner --test-path=src -vc pid=2189 py313: FAIL code 1 (0.97 seconds) evaluation failed :( (1.02 seconds) https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06726418-python-BTrees/ For all our attempts to build python-BTrees with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-BTrees/ 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.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. 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.
The backtrace points to python-zope-testrunner. Reassigning.
Upstream has a partial fix: https://github.com/zopefoundation/zope.testrunner/pull/158. However, it causes other problems that will need to be addressed. See https://github.com/zopefoundation/zope.testrunner/issues/157. Also, even once that is fixed there are other problems: https://github.com/zopefoundation/zope.testrunner/issues/155. It may be a little while before upstream has fixes for these issues. In the meantime, test suites that use python-zope-testrunner may fail. These packages consume python-zope-testrunner: - python-BTrees - python-ZConfig - python-ZEO - python-ZODB - python-flexmock - python-lazr-config - python-lazr-delegates - python-persistent - python-zodbpickle - python-zope-event - python-zope-schema - python-zopeundo
I started with upstream's patch and put together a patch that lets python-BTrees build successfully with python 3.13. Further work may be required, so I will leave this bug open for now, but this should let us make some progress. Please note any further test failures that look like issues with python-zope-testrunner.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40.
This message is a reminder that Fedora Linux 40 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '40'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 40 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13. Fedora Linux 40 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed.