Skip to content

RuntimeError: aiodns needs a SelectorEventLoop on Windows #52

@hokc12

Description

@hokc12

Hello, I have a script that I am using very well. Can you help me with a recent problem?
I am worried because there has been no recent update.
I am reporting a problem after updating from Python 3.11.2 to 3.12.9.
I am a windows 10 user

aio-libs/aiodns#86

There seems to be a guide to dealing with a similar issue, but
I don't know exactly which files to modify and how.

Traceback (most recent call last): File "C:\fc2_live_dl\autofc2.py", line 120, in handle_channel async with FC2LiveDL(params, self.handle_event) as fc2: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\pb\AppData\Local\Programs\Python\Python312\Lib\site-packages\fc2_live_dl\FC2LiveDL.py", line 93, in __aenter__ self._session = aiohttp.ClientSession( ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\pb\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiohttp\client.py", line 359, in __init__ connector = TCPConnector(loop=loop) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\pb\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiohttp\connector.py", line 869, in __init__ resolver = DefaultResolver(loop=self._loop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\pb\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiohttp\resolver.py", line 96, in __init__ self._resolver = aiodns.DNSResolver(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\pb\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiodns\__init__.py", line 60, in __init__ raise RuntimeError( RuntimeError: aiodns needs a SelectorEventLoop on Windows. See more: https://github.com/saghul/aiodns/issues/86 Task exception was never retrieved future: <Task finished name='Task-1721' coro=<AutoFC2.handle_channel() done, defined at C:\fc2_live_dl\autofc2.py:118> exception=RuntimeError('aiodns needs a SelectorEventLoop on Windows. See more: https://github.com/saghul/aiodns/issues/86')>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions