Bug 1926201
| Summary: | fail2ban fails to build with Python 3.10ImportError: cannot import name 'MutableMapping' from 'collections' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
| Component: | fail2ban | Assignee: | Richard Shaw <hobbes1069> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | anon.amish, Axel.Thimm, hobbes1069, mhroncok, orion, thrnciar, vonsch |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-05-30 12:34:51 UTC | 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: | 1890881 | ||
I have pushed a commit from upstream into rawhide. This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34. |
fail2ban fails to build with Python 3.10.0a5. Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.2/bin/fail2ban-testcases", line 61, in <module> tests = gatherTests(regexps, opts) File "./fail2ban/tests/utils.py", line 381, in gatherTests from . import clientreadertestcase File "./fail2ban/tests/clientreadertestcase.py", line 34, in <module> from ..client.jailreader import JailReader, extractOptions, splitWithOptions File "./fail2ban/client/jailreader.py", line 34, in <module> from .actionreader import ActionReader File "./fail2ban/client/actionreader.py", line 31, in <module> from ..server.action import CommandAction File "./fail2ban/server/action.py", line 33, in <module> from collections import MutableMapping ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib64/python3.10/collections/__init__.py) bpo-37324: Remove deprecated aliases to Collections Abstract Base Classes from the collections module. https://docs.python.org/3.10/whatsnew/changelog.html#python-3-10-0-alpha-5 For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01951917-fail2ban/ For all our attempts to build fail2ban with Python 3.10, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/fail2ban/ 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.10: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/ Let us know here if you have any questions. Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10. 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.