Skip to content

RuntimeError: Event loop is closed on WSL #294

@LitBomb

Description

@LitBomb

I am running:

  • Python 3.10.2
  • Python-kasa version 0.4.1
  • inside PowerShell 5.1.19041.1320 on Windows 10
  • Kasa Bulb KL135 firmware version 1.0.10

Every time I call:
kasa --type bulb --host <blubIP> hsv 0 100 100

I get the following exception. The bulb does turn to red though. Am I missing something? I also get other errors running kasa discovery. Thanks.

Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x0000015646DAE8C0>
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 116, in __del__
    self.close()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 108, in close
    self._loop.call_soon(self._call_connection_lost, None)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 745, in call_soon
    self._check_closed()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 510, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions