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 1838327
Summary: | pcs fails to build with Python 3.9: AttributeError: __args__ and AttributeError: type object 'Mapping' has no attribute '_special' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | pcs | Assignee: | Ondrej Mular <omular> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | anprice, cfeist, cstratak, fedora, idevat, igor.raits, mhroncok, mlisik, mplch, omular, tojeline |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | pcs-0.10.5-6.fc33 pcs-0.10.5-8.fc33 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-07-03 13:16:19 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: | 1803234, 1803235, 1785415 |
Description
Miro Hrončok
2020-05-20 22:19:45 UTC
File "/builddir/build/BUILDROOT/pcs-0.10.5-4.fc33.x86_64/usr/lib/pcs/bundled/packages/dacite/types.py", line 99, in _has_specified_inner_types return not type_._special Try replacing it with: return not getattr(type_, '_special', False) Thank you for reporting this issue and even suggesting a possible solution. The problem is in bundled library dacite so, I'll report this issue in their upstream and I'll update pcs package as soon as we have a patch. This comment is mass posted to all bugs blocking the Python 3.9 tracker, sorry if it is not 100 % relevant. When in doubt, please ask. The Python 3.9 rebuild is in progress in a Koji side tag. If you fix this bug, please don't rebuild the package in regular rawhide, but do it in the side tag with: $ fedpkg build --target=f33-python The rebuild is progressing slowly and it is possible this package won't have all the required build dependencies yet. If that's the case, please just leave the fix committed and pushed and we will eventually rebuild it for you. You are not asked to go and try rebuild all the missing dependencies yourself. If you know there is a bootstrap loop in the dependencies, let me know and we can untangle it together. If you want to test your fix or reproduce the failure, you can still use the Copr repo mentioned in the initial comment of this bug: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/ I filed an issue in dacite upstream: https://github.com/konradhalas/dacite/issues/98 Python 3.9 update: The f33-python side tag is currently being merged. New builds in f33-python are no longer possible, but python3 is not yet updated to Python 3.9 in rawhide. You can check when Python is Python 3.9 with: $ koji wait-repo f33-build --build python3.9-3.9.0~b1-3.fc3 And build the packages normally after that. *** Bug 1841655 has been marked as a duplicate of this bug. *** Temporarily we'll use a patched version of dacite (which works fine in our use case) until there is an upstream version with Python 3.9 support. FEDORA-2020-0a4ce6ab7e has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report. |