New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BaseDownloader.fetch passes coroutine to asyncio.wait which is forbidden in python 3.11 #4107
Labels
Comments
Honestly why is it wrapped inside |
EamonTracey
added a commit
to EamonTracey/pulpcore
that referenced
this issue
Jul 24, 2023
fixes pulp#4107 Signed-off-by: EamonTracey <etracey@redhat.com>
EamonTracey
added a commit
to EamonTracey/pulpcore
that referenced
this issue
Jul 25, 2023
EamonTracey
added a commit
to EamonTracey/pulpcore
that referenced
this issue
Jul 25, 2023
EamonTracey
added a commit
to EamonTracey/pulpcore
that referenced
this issue
Jul 26, 2023
dkliban
pushed a commit
that referenced
this issue
Jul 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python 3.8 deprecated passing coroutines to
asyncio.wait
and Python 3.11 will now raise an error. This causes the BaseDownloader.fetch call to fail on Python 3.11pulpcore/pulpcore/download/base.py
Line 185 in 9dbcc88
Python provides the solution in the error message: "Passing coroutines is forbidden, use tasks explicitly."
I believe this can be fixed by explicitly converting the coroutine to a task using asyncio's
create_task
The text was updated successfully, but these errors were encountered: