Bug 1792793
| Summary: | pyudev fails to import on Python 3.9: imports abc from collections | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | lvm2 | Assignee: | Marian Csontos <mcsontos> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | agk, amulhern, anprice, apevec, bmarzins, bmr, cfeist, clockfor, cstratak, dkeefe, heinzm, jbrassow, jonathan, jskarvad, kzak, lvm-team, mcsontos, mhroncok, msnitzer, prajnoha, prockai, zkabelac |
| 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: | 2020-02-18 09:58:37 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: | 1772058 | ||
| Bug Blocks: | 1785415 | ||
|
Description
Miro Hrončok
2020-01-20 01:05:06 UTC
Note to myself: the ./configure need to be rebuilt, to recognize python-3.9 I think. New build will follow soon TL;DR: Looks like there may be an error in pyudev. The configure runs `/usr/bin/python3 -c "import pyudev"` and that is failing. If you have env to check that out, try that please, I will try myself.
I checked the logs, and correct python-3.9 from copr IS installed and the same for python3-pyudev, so there must be something else going on...
DEBUG util.py:598: ================================================================================
DEBUG util.py:598: Package ArchVersion Repository Size
DEBUG util.py:598: ================================================================================
DEBUG util.py:598: Installing:
...
DEBUG util.py:598: python3-pyudev noarch0.21.0-13.fc32 copr_base 77 k
...
DEBUG util.py:598: Installing dependencies:
DEBUG util.py:598: python-pip-wheel noarch19.3.1-2.fc32 copr_base 1.2 M
DEBUG util.py:598: python-setuptools-wheel noarch41.6.0-2.fc32 copr_base 282 k
DEBUG util.py:598: python3 x86_643.9.0~a2-1.fc32 copr_base 25 k
The configure script output show python 3.9 is used:
checking for python3... /usr/bin/python3
checking for python3 version... 3.9
checking for python3 platform... linux
checking for python3 script directory... ${prefix}/lib/python3.9/site-packages
checking for python3 extension module directory... ${exec_prefix}/lib64/python3.9/site-packages
checking for x86_64-redhat-linux-gnu-python3-config... no
checking for python3-config... /usr/bin/python3-config
checking python3 module: pyudev... no
This runs the above `/usr/bin/python3 -c "import pyudev"` which is failing. configure is hiding errors, so I have no output
<mock-chroot> sh-5.0# /usr/bin/python3 -c "import pyudev"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.9/site-packages/pyudev/__init__.py", line 43, in <module>
from pyudev.device import Attributes
File "/usr/lib/python3.9/site-packages/pyudev/device/__init__.py", line 28, in <module>
from ._device import Attributes
File "/usr/lib/python3.9/site-packages/pyudev/device/_device.py", line 35, in <module>
from collections import Container
ImportError: cannot import name 'Container' from 'collections' (/usr/lib64/python3.9/collections/__init__.py)
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."
This is already fixed upstream. I will release an upstream version of pyudev shortly. Once that is completed the pyudev Fedora maintainer can simply cut a new release and all should be well. This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32. I see lvm2 builds fine with updated pyudev. Closing |