Bug 2019843
Summary: | python-pexpect fails to build with Python 3.11: AttributeError: module 'asyncio' has no attribute 'coroutine' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | python-pexpect | Assignee: | Andrew McNabb <amcnabb> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 36 | CC: | amcnabb, bperkins, dradez, fabian.deutsch, igor.raits, mhroncok, python-sig, swt, thrnciar, tomspur |
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: | 2022-03-24 23:52:43 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: | 1992484, 2016048, 2045102, 2068014 |
Description
Tomáš Hrnčiar
2021-11-03 12:57:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36. Many packages need this, hence adjusting the severity. $ repoquery --repo=rawhide{,-source} --whatrequires python3-pexpect ansible-core-0:2.12.2-1.fc36.src catfish-0:4.16.3-2.fc36.1.noarch catfish-0:4.16.3-2.fc36.1.src chess_db-0:0.2-3.20210517giteb41ddf.fc36.src cinnamon-0:5.2.7-2.fc36.x86_64 coq-0:8.14.1-4.fc36.src duplicity-0:0.8.21-5.fc36.src duplicity-0:0.8.21-5.fc36.x86_64 fence-agents-0:4.11.0-3.fc36.src fence-agents-common-0:4.11.0-3.fc36.noarch fence-agents-vmware-0:4.11.0-3.fc36.noarch fence-agents-xenapi-0:4.11.0-3.fc36.noarch fish-0:3.3.1^1075ge0bc944d5c5-1.fc37.src fleet-commander-admin-0:0.15.1-5.fc36.noarch fleet-commander-admin-0:0.15.1-5.fc36.src hatch-0:0.23.1-3.20220204git804d5fd.fc36.noarch hatch-0:0.23.1-3.20220204git804d5fd.fc36.src ipython-0:8.0.1-1.fc36.src libvirt-test-API-0:1.1-6.fc36.noarch libvirt-test-API-0:1.1-6.fc36.src mycli-0:1.24.3-1.fc36.src pgcli-0:3.1.0-4.fc35.src poetry-0:1.1.12-2.fc36.src pychess-0:1.0.3-1.fc37.src pytest-0:6.2.5-2.fc36.src python-ansible-runner-0:2.1.1-2.fc36.src python-argcomplete-0:2.0.0-2.fc36.src python-bash-kernel-0:0.7.2-3.fc36.src python-hypothesis-0:6.36.0-1.fc36.src python-jupyter-polymake-0:0.16-18.20180129.7049940.fc36.src python-metakernel-0:0.28.2-2.fc36.src python-pytest-timeout-0:2.1.0-1.fc36.src python3-ansible-runner-0:2.1.1-2.fc36.noarch python3-bash-kernel-0:0.7.2-3.fc36.noarch python3-ipatests-0:4.9.8-3.fc36.noarch python3-ipython+notebook-0:8.0.1-1.fc36.noarch python3-ipython-0:8.0.1-1.fc36.noarch python3-jupyter-polymake-0:0.16-18.20180129.7049940.fc36.noarch python3-metakernel-0:0.28.2-2.fc36.noarch python3-poetry-0:1.1.12-2.fc36.noarch python3-pygatt-0:4.0.5-8.fc36.noarch python3-spyder-0:5.2.1-2.fc36.noarch reptyr-0:0.8.0-4.fc36.src rr-0:5.5.0-3.fc36.src rr-testsuite-0:5.5.0-3.fc36.x86_64 sagemath-0:9.4-3.fc36.src sagemath-core-0:9.4-3.fc36.x86_64 scoutfish-0:1.1-3.20210517gitb619262.fc36.src sigul-0:1.1-4.fc35.src sigul-server-0:1.1-4.fc35.x86_64 Andrew, will you be able to fix this? Miro, I think @amcnabb may be unresponsive. I don't see any commits in 8+ years. (In reply to Scott Talbert from comment #3) > Miro, I think @amcnabb may be unresponsive. I don't see any commits in 8+ > years. I've started bz2068014. In the meantime, I see you are a co-maintainer, would you be able to fix this, or do you need some pointers? (In reply to Miro Hrončok from comment #4) > (In reply to Scott Talbert from comment #3) > > Miro, I think @amcnabb may be unresponsive. I don't see any commits in 8+ > > years. > > I've started bz2068014. > > In the meantime, I see you are a co-maintainer, would you be able to fix > this, or do you need some pointers? I have looked at it previously, but it wasn't clear to me how to replace @asyncio with async/await. It doesn't seem like they are exact one-for-one replacements, and I didn't want to introduce any new bugs due to my lack of understanding. I was hoping upstream would fix this, but it seems like upstream is somewhat stalled. As far as I know, it should be as easy as: Before: @asyncio.coroutine def expect_async(expecter, timeout=None): After: async def expect_async(expecter, timeout=None): They should be exact one-for-one replacements, but I am not 100% sure. No, not that simple :) SyntaxError: 'return' with value in async generator yield from -> await does it testing mockbuilds, will submit an upstream PR you can take Thanks, Miro - I didn't realize that was all it needed. Applied your patch in Rawhide. Thanks, Scott. PS After talking to @amcnabb, I've made you the main maintainer of the package. |