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 1705219
Summary: | WALinuxAgent FTBFS with Python 3.8 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> | ||||
Component: | WALinuxAgent | Assignee: | Vitaly Kuznetsov <vkuznets> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | logans, vkuznets | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | WALinuxAgent-2.2.40-1.fc31 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2019-06-03 16:38:57 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: | 1686977 | ||||||
Attachments: |
|
Description
Miro Hrončok
2019-05-01 18:56:01 UTC
I'll take this, I think it was already fixed upstream. The issue arises when python3-distro is not present in buildroot and it wasn't among build dependencies. The code in the package is try: import distro except Exception: pass and then we do (simplified): try: supported = platform._supported_dists + (supported_dists,) except AttributeError: return distro.linux_distribution()... The package gets this dependency when build: # rpm -q --requires WALinuxAgent | grep distro python3.7dist(distro) So the bottom line is: I believe that adding BuildRequires: python3-distro will fix the issue. I, however, have no idea how to check before Python3.8 lands. I checked locally with python38 package and distro.py thrown into /usr/lib/python3.8/site-packages/ and 'python3.8 setup.py build' succeeds. I'm going to push this to rawhide. You can check in mock: https://copr.fedorainfracloud.org/coprs/g/python/python3.8/ (In reply to Miro Hrončok from comment #3) > You can check in mock: > https://copr.fedorainfracloud.org/coprs/g/python/python3.8/ This worked, thanks. And apparently I was right about the fix as mockbuild succeeds. Thank you, built in our copr. |