-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
[BUG] aiodns needs a SelectorEventLoop on Windows? #729
Comments
Had the same issue on a new install. I found out that aiohttp 3.10.0 on Windows is the issue. Downgrade it to 3.9.5
|
I had same issue. RyanThaDude's solution helped out. |
Thank you very much, brother. |
adding this line somewhere in the code also can fix it
|
thankssss |
Describe the bug
Not sure what I'm missing here, though I am fairly new to all this so I hope the following information is helpful.
Python version 3.12.4
PIP version 24.2
SteamRip version 2.0.5
The following was copied from the cmd window:
┌─────────────────────────────── Traceback (most recent call last) ────────────────────────────────┐
│ C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiodns_init_.py:58 │
│ in init │
│ │
│ 55 │ │ if sys.platform == 'win32': │
│ 56 │ │ │ if not isinstance(self.loop, asyncio.SelectorEventLoop): │
│ 57 │ │ │ │ try: │
│ > 58 │ │ │ │ │ import winloop │
│ 59 │ │ │ │ │ if not isinstance(self.loop , winloop.Loop): │
│ 60 │ │ │ │ │ │ raise RuntimeError( │
│ 61 │ │ │ │ │ │ │ 'aiodns needs a SelectorEventLoop on Windows. See more: http │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
ModuleNotFoundError: No module named 'winloop'
During handling of the above exception, another exception occurred:
┌─────────────────────────────── Traceback (most recent call last) ────────────────────────────────┐
│ in run_module_as_main:198 │
│ in run_code:88 │
│ │
│ ... 18 frames hidden ... │
│ │
│ C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiohttp\resolver.py:94 │
│ in init │
│ │
│ 91 │ │ if aiodns is None: │
│ 92 │ │ │ raise RuntimeError("Resolver requires aiodns library") │
│ 93 │ │ │
│ > 94 │ │ self.resolver = aiodns.DNSResolver(*args, **kwargs) │
│ 95 │ │ │
│ 96 │ │ if not hasattr(self.resolver, "gethostbyname"): │
│ 97 │ │ │ # aiodns 1.1 is not available, fallback to DNSResolver.query │
│ │
│ C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiodns_init.py:63 │
│ in init │
│ │
│ 60 │ │ │ │ │ │ raise RuntimeError( │
│ 61 │ │ │ │ │ │ │ 'aiodns needs a SelectorEventLoop on Windows. See more: http │
│ 62 │ │ │ │ except ModuleNotFoundError: │
│ > 63 │ │ │ │ │ raise RuntimeError( │
│ 64 │ │ │ │ │ │ 'aiodns needs a SelectorEventLoop on Windows. See more: https:// │
│ 65 │ │ kwargs.pop('sock_state_cb', None) │
│ 66 │ │ timeout = kwargs.pop('timeout', None) │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
RuntimeError: aiodns needs a SelectorEventLoop on Windows. See more: aio-libs/aiodns#86
Exception ignored in: <bound method BaseEventLoop.call_exception_handler of >
Traceback (most recent call last):
File "C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 1854, in call_exception_handler
File "C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\logging_init.py", line 1568, in error
File "C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\logging_init.py", line 1684, in log
File "C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\logging_init.py", line 1700, in handle
File "C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\logging_init.py", line 1762, in callHandlers
File "C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\logging_init_.py", line 1028, in handle
File "C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\site-packages\rich\logging.py", line 160, in emit
File "C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\site-packages\rich\logging.py", line 221, in render
File "C:\Users\Loham\AppData\Local\Programs\Python\Python312\Lib\site-packages\rich_log_render.py", line 43, in call
ImportError: sys.meta_path is None, Python is likely shutting down
Command Used
Debug Traceback
Config File
Operating System
Windows 10
streamrip version
2.0.5
Screenshots and recordings
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: