Bug 2576460
| Summary: | python-circuitbreaker fails to build with Python 3.16: ImportError: cannot import name 'iscoroutinefunction' from 'asyncio' (/usr/lib64/python3.16/asyncio/__init__.py) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
| Component: | python-circuitbreaker | Assignee: | Major Hayden 🤠<mhayden> |
| Status: | NEW --- | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | ksurma, mhayden, mhroncok, neil |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2567340 | ||
python-circuitbreaker fails to build with Python 3.16.0a2. + /usr/bin/python3 -sP /usr/lib/rpm/redhat/import_all_modules.py -f /builddir/build/BUILD/python-circuitbreaker-2.1.3-build/python-circuitbreaker-2.1.3-5.fc46.x86_64-pyproject-modules Check import: circuitbreaker Traceback (most recent call last): File "/usr/lib/rpm/redhat/import_all_modules.py", line 106, in import_modules importlib.import_module(module) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "/usr/lib64/python3.16/importlib/__init__.py", line 88, in import_module return _bootstrap._gcd_import(name[level:], package, level) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1388, in _gcd_import File "<frozen importlib._bootstrap>", line 1352, in _find_and_load File "<frozen importlib._bootstrap>", line 1248, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 856, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 754, in exec_module File "<frozen importlib._bootstrap>", line 490, in _call_with_frames_removed File "/builddir/build/BUILD/python-circuitbreaker-2.1.3-build/BUILDROOT/usr/lib/python3.16/site-packages/circuitbreaker.py", line 1, in <module> from asyncio import iscoroutinefunction ImportError: cannot import name 'iscoroutinefunction' from 'asyncio' (/usr/lib64/python3.16/asyncio/__init__.py) Failed to import: circuitbreaker https://docs.python.org/3.16/whatsnew/3.16.html The asyncio.iscoroutinefunction() which has been deprecated since Python 3.14. Use inspect.iscoroutinefunction() instead. For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.16/fedora-rawhide-x86_64/11359635-python-circuitbreaker/ For all our attempts to build python-circuitbreaker with Python 3.16, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.16/package/python-circuitbreaker/ 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.16: https://copr.fedorainfracloud.org/coprs/g/python/python3.16/ Let us know here if you have any questions. Python 3.16 is planned to be included in Fedora 47. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.16. 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.