-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(general): add support for windows 10 for aiohttp #6696
Conversation
@staticmethod | ||
def set_config(): | ||
# asyncio - on windows aiodns needs SelectorEventLoop | ||
if sys.platform == 'win32': | ||
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AdamDev How does it solve the issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This issue exists in many places in the network, this is the suggested solution:
aio-libs/aiodns#86 (comment)
Root cause:
aio-libs/aiodns#86 (comment)
) * add support for windows 10 for aiohttp * revert unrelevant changes * revert unrelevant changes * clean * clean --------- Co-authored-by: adam varsano <[email protected]>
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
Add support for windows 10 for aiohttp, it's throwing an error:
RuntimeError: aiodns needs a SelectorEventLoop on Windows.
Checklist: