Bug 1792919 - python-dns fails to build with Python 3.9: imports abc from collections
Summary: python-dns fails to build with Python 3.9: imports abc from collections
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-dns
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paul Wouters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-01-20 11:50 UTC by Miro Hrončok
Modified: 2020-01-22 15:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-22 15:23:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-01-20 11:50:47 UTC
python-dns fails to build with Python 3.9.0a2.

AttributeError: module 'collections' has no attribute 'MutableMapping'

See https://docs.python.org/3.9/whatsnew/3.9.html#removed

"The abstract base classes in collections.abc no longer are exposed in the regular collections module. This will help create a clearer distinction between the concrete classes and the abstract base classes."

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01161146-python-dns/

For all our attempts to build python-dns with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-dns/

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.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
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 Miro Hrončok 2020-01-22 10:13:47 UTC
The following packages require this in rawhide:

calibre-0:4.8.0-3.fc32.x86_64
cobbler-0:3.1.1-1.fc32.noarch
dnsperf-0:2.3.2-2.fc32.x86_64
electron-cash-0:4.0.12-1.fc32.noarch
electrum-0:3.3.4-5.fc32.noarch
fleet-commander-admin-0:0.15.0-1.fc32.noarch
fleet-commander-admin-0:0.15.0-1.fc32.src
freeipa-0:4.8.4-2.fc32.src
linkchecker-0:9.4.0-7.20190422.72b85c4.fc32.src
linkchecker-0:9.4.0-7.20190422.72b85c4.fc32.x86_64
mailman3-0:3.2.0-2.fc30.noarch
mailman3-0:3.2.0-2.fc30.src
mirrormanager2-0:0.11-1.fc32.noarch
mirrormanager2-0:0.11-1.fc32.src
mirrormanager2-lib-0:0.11-1.fc32.noarch
mysql-connector-python3-0:8.0.19-1.fc32.noarch
nordugrid-arc-archery-manage-0:6.4.1-1.fc32.noarch
python-certbot-dns-rfc2136-0:1.0.0-1.fc32.src
python-dns-lexicon-0:3.3.4-2.fc32.src
python-etcd-0:0.4.5-17.fc32.src
python-eventlet-0:0.25.1-2.fc32.src
python-kdcproxy-0:0.4.2-2.fc32.src
python-ryu-0:4.29-7.fc32.src
python3-certbot-dns-rfc2136-0:1.0.0-1.fc32.noarch
python3-dns-lexicon+hetzner-0:3.3.4-2.fc32.noarch
python3-email-validator-0:1.0.5-2.fc32.noarch
python3-etcd-0:0.4.5-17.fc32.noarch
python3-eventlet-0:0.25.1-2.fc32.noarch
python3-ipaclient-0:4.8.4-2.fc32.noarch
python3-ipalib-0:4.8.4-2.fc32.noarch
python3-ipaserver-0:4.8.4-2.fc32.noarch
python3-kdcproxy-0:0.4.2-2.fc32.noarch
python3-samba-2:4.11.5-0.fc32.x86_64

Comment 2 Karthikeyan Singaravelan 2020-01-22 14:48:11 UTC
Seems to be fixed with https://github.com/rthalley/dnspython/commit/62d3d41382d919af4662c12876f3de6ca854fd54 . Thanks

Comment 3 Miro Hrončok 2020-01-22 15:00:03 UTC
Preparing a Fedora PR.


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