Bug 1808674
Summary: | ansible fails to build with Python 3.9: ansible-test units: error: argument --python: invalid choice: '3.9' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | ansible | Assignee: | Charalampos Stratakis <cstratak> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | a.badger, cstratak, igor.raits, kevin, maxim, mhroncok, mplch |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ansible-2.9.9-3.fc33 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-30 07:03:32 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: | 1785415, 1803234 |
Description
Miro Hrončok
2020-02-29 10:42:17 UTC
I guess this is the problem: https://github.com/ansible/ansible/blob/ce0fc4005c7f95d78a719c35faa3975b66ff5272/test/lib/ansible_test/_internal/util.py#L114 SUPPORTED_PYTHON_VERSIONS = ( '2.6', '2.7', '3.5', '3.6', '3.7', '3.8', ) From upstream: <@mattclay> abadger1999: ansible-test in devel now has support for Python 3.9 -- however, the requirements haven't been updated yet for pylint, so it won't work with our container or requirements files. It may work with newer versions, but I haven't tested that yet. Looks like there were several PRs to get it to work. I found these three which look relevant: * https://github.com/ansible/ansible/pull/67891 * https://github.com/ansible/ansible/pull/67907 * https://github.com/ansible/ansible/pull/67908 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/ 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 1841619 has been marked as a duplicate of this bug. *** I'm rising the severity here, because without ansible, the Fedora CI is broken. Hello, This is the first reminder (step 3 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs). I am in the middle of a datacenter move, so I will likely not have cycles for this for a while. Hopefully Toshio or one of my other co-maintainers can look into it. Will provide a fixed build. There are some more failures with pytest 5 though, so I'll pin the dependency to version 4. Hello, Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (ignatenkobrain). All subpackages of a package agaisnt which this bug was filled are now installable or removed from Fedora 33. Thanks for taking care of it! |