Possibly related to 124
$ kasa No host name given, trying discovery.. Discovering devices on 255.255.255.255 for 3 seconds ERROR:asyncio:Exception in callback _DiscoverProtocol.connection_made(<_SelectorDat...e, bufsize=0>>) handle: <Handle _DiscoverProtocol.connection_made(<_SelectorDat...e, bufsize=0>>)> Traceback (most recent call last): File "/usr/lib/python3.8/asyncio/events.py", line 81, in _run self._context.run(self._callback, *self._args) File "/mnt/g/Code/kasa/venv/lib/python3.8/site-packages/kasa/discover.py", line 51, in connection_made sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) File "/usr/lib/python3.8/asyncio/trsock.py", line 82, in setsockopt self._sock.setsockopt(*args, **kwargs) OSError: [Errno 22] Invalid argument
$ kasa discover Discovering devices on 255.255.255.255 for 3 seconds ERROR:asyncio:Exception in callback _DiscoverProtocol.connection_made(<_SelectorDat...e, bufsize=0>>) handle: <Handle _DiscoverProtocol.connection_made(<_SelectorDat...e, bufsize=0>>)> Traceback (most recent call last): File "/usr/lib/python3.8/asyncio/events.py", line 81, in _run self._context.run(self._callback, *self._args) File "/mnt/g/Code/kasa/venv/lib/python3.8/site-packages/kasa/discover.py", line 51, in connection_made sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) File "/usr/lib/python3.8/asyncio/trsock.py", line 82, in setsockopt self._sock.setsockopt(*args, **kwargs) OSError: [Errno 22] Invalid argument
This is with version 0.4.0
That error is coming from your operating system, are you running on Linux or something else?
Sure thing, it's a likely a legit bug that should be fixed. I updated the title to make it more discoverable, thanks for reporting!
Awesome, thanks for updating the title! Also thanks for being so approachable and having a great attitude.
Loving the idea of this project. Cheers!
@GregHilston sorry for the delay, do you mind testing if the linked PR fixes the issue?
Hey sure thing! I'll have to test it out tomorrow. Will report back!
@rytilahti Got to it this morning, and its a success!!!
I'm getting back a query of all my Kasa devices with your branch on WSL
Prepare 0.4.1
Prepare 0.4.1 (#288)
Prepare 0.4.1 (python-kasa#288)
Activity
rytilahti commented on Nov 1, 2021
That error is coming from your operating system, are you running on Linux or something else?
GregHilston commented on Nov 1, 2021
rytilahti commented on Nov 2, 2021
Sure thing, it's a likely a legit bug that should be fixed. I updated the title to make it more discoverable, thanks for reporting!
GregHilston commented on Nov 2, 2021
Awesome, thanks for updating the title! Also thanks for being so approachable and having a great attitude.
Loving the idea of this project. Cheers!
rytilahti commented on Jan 8, 2022
@GregHilston sorry for the delay, do you mind testing if the linked PR fixes the issue?
GregHilston commented on Jan 8, 2022
Hey sure thing! I'll have to test it out tomorrow. Will report back!
GregHilston commented on Jan 8, 2022
@rytilahti Got to it this morning, and its a success!!!
I'm getting back a query of all my Kasa devices with your branch on WSL
Prepare 0.4.1
Prepare 0.4.1 (#288)
Prepare 0.4.1 (python-kasa#288)