-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Problems when using proxy under Windows #4536
Comments
I think you should rerun it with en_US locale so that we'd have the actual error message in English. |
Sorry i ignored it. |
AFAIK it is related to changed default event loop for python 3.8 on Windows and/or |
When I run it using Python3.7, it works fine. |
So you have to wait for aiohttp 3.7 release then. As a workaround either use Python 3.7 or use policy = asyncio.WindowsSelectorEventLoopPolicy()
asyncio.set_event_loop_policy(policy) |
OK, I will try it, thank you very much.You can close this issue now or wait for aiohttp3.7 release. |
it worked for me, thanks ! |
import sys
if sys.version_info[0] == 3 and sys.version_info[1] >= 8 and sys.platform.startswith('win'):
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) it also useful in some problem on httpx some issues |
I see aiohttp 3.7.3 released and this problem still stays@hh-j
|
Same problem with Python 3.8.5 for windows. With ubuntu everything works fine. |
Long story short
I get an error when running the following code under Python 3.8.1 and aiohttp3.6.2 under Windows
Expected behaviour
Actual behaviour
Steps to reproduce
Run the above code
Your environment
OS: windows7
proxy: v2ray
aiohttp: 3.6.2(client)
python: 3.8.1
When I remove the proxy parameter, it works fine
The text was updated successfully, but these errors were encountered: