Bug 1772058

Summary: pyudev fails to build on Python 3.9 due to collections import error
Product: [Fedora] Fedora Reporter: Jiri Konecny <jkonecny>
Component: python-pyudevAssignee: David Shea <reallylongword>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: amulhern, apevec, clockfor, dkeefe, jskarvad, reallylongword
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pyudev-0.22.0-1.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-06 00:27:47 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: 1792793, 1793485    

Description Jiri Konecny 2019-11-13 14:35:35 UTC
Description of problem:

When running Anaconda this deprecation warning is printed:

```
WARNING:py.warnings:/usr/lib/python3.8/site-packages/pyudev/device/_device.py:35: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections..abc' is deprecated since Python 3.3, and in 3.9 it will stop working

from collections import Container
```

The most problematic part is that Python is planning to remove this feature in 3.9 and we have 3.8 in Rawhide.

Release schedule for 3.9:

3.9.0 candidate 1: Monday, 2020-08-10
3.9.0 candidate 2: Monday, 2020-09-14
3.9.0 final: Monday, 2020-10-05

https://www.python.org/dev/peps/pep-0596/


Version-Release number of selected component (if applicable):
python3-pyudev-0.21.0-13.fc32.noarch

Comment 1 mulhern 2020-01-24 16:22:57 UTC
I'm going to close this because it's obsolete. pyudev now fails to build at all on rawhide.

Comment 2 mulhern 2020-01-24 16:23:50 UTC
Whoops, the bz interface did it's thing. I'm updating the title to reflect the current state of affairs.

Comment 3 mulhern 2020-01-24 16:34:23 UTC
Upstream issue: https://github.com/pyudev/pyudev/issues/396.

Comment 4 mulhern 2020-01-27 16:08:58 UTC
The reality is that pyudev is building just fine on rawhide still, because the Python version on rawhide is still 3.8. It isn't building fine on the copr builds which are the preliminary step to stage 3.9 into rawhide, so changing the title again to be more accurate and specify the real problem.

Comment 5 mulhern 2020-01-27 16:10:32 UTC
reallylongword: the new build is up on PyPi. Are you able to take it from here?

Comment 6 David Shea 2020-02-06 00:27:47 UTC
New package built for rawhide