Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1926201 - fail2ban fails to build with Python 3.10ImportError: cannot import name 'MutableMapping' from 'collections'
Summary: fail2ban fails to build with Python 3.10ImportError: cannot import name 'Muta...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: fail2ban
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Shaw
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2021-02-08 12:52 UTC by Tomáš Hrnčiar
Modified: 2021-05-30 12:34 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-30 12:34:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-02-08 12:52:06 UTC
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.

Comment 1 Richard Shaw 2021-02-08 23:58:24 UTC
I have pushed a commit from upstream into rawhide.

Comment 2 Ben Cotton 2021-02-09 16:06:27 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.


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