pysonofflan icon indicating copy to clipboard operation
pysonofflan copied to clipboard

Unexpected error in shutdown_event_loop(): gather() got an unexpected keyword argument 'loop'

Open ericw78 opened this issue 2 years ago • 2 comments

  • pySonoffLAN version: pySonoffLANr3
  • Python version: 3.10.6
  • Operating System: Kubuntu 22.04

Description

When using state, on or off commands, I get an error when it is finishing and the command does not return

What I Did

pysonofflanr3 --host 192.168.1.58 --api_key on 2023-03-02 18:37:09,566 - info: Initialising SonoffSwitch with host 192.168.1.58 2023-03-02 18:37:09,734 - info: Service type _ewelink._tcp.local. of name eWeLink_10000be334._ewelink._tcp.local. added 2023-03-02 18:37:09,738 - info: None: Connected event, sending 'available' update 2023-03-02 18:37:09,738 - info: unsolicited update received from switch: off 2023-03-02 18:37:09,738 - info: == Device: 10000be334 (192.168.1.58) == 2023-03-02 18:37:09,738 - info: State: OFF 2023-03-02 18:37:09,738 - info: None: Connected event, waiting for disconnect 2023-03-02 18:37:09,947 - info: None: Connected event, sending 'available' update 2023-03-02 18:37:09,947 - info: == Device: 10000be334 (192.168.1.58) == 2023-03-02 18:37:09,947 - info: State: ON 2023-03-02 18:37:09,947 - error: Unexpected error in shutdown_event_loop(): gather() got an unexpected keyword argument 'loop' ^C Aborted!

ericw78 avatar Mar 02 '23 17:03 ericw78

this is no longer maintained. I have a project built on this which works - https://github.com/dauheeIRL/SonoffSimpleLAN

dauheeIRL avatar Jun 27 '23 10:06 dauheeIRL

  • pySonoffLAN version: pySonoffLANr3
  • Python version: 3.10.6
  • Operating System: Kubuntu 22.04

Description

When using state, on or off commands, I get an error when it is finishing and the command does not return

What I Did

pysonofflanr3 --host 192.168.1.58 --api_key on 2023-03-02 18:37:09,566 - info: Initialising SonoffSwitch with host 192.168.1.58 2023-03-02 18:37:09,734 - info: Service type _ewelink._tcp.local. of name eWeLink_10000be334._ewelink._tcp.local. added 2023-03-02 18:37:09,738 - info: None: Connected event, sending 'available' update 2023-03-02 18:37:09,738 - info: unsolicited update received from switch: off 2023-03-02 18:37:09,738 - info: == Device: 10000be334 (192.168.1.58) == 2023-03-02 18:37:09,738 - info: State: OFF 2023-03-02 18:37:09,738 - info: None: Connected event, waiting for disconnect 2023-03-02 18:37:09,947 - info: None: Connected event, sending 'available' update 2023-03-02 18:37:09,947 - info: == Device: 10000be334 (192.168.1.58) == 2023-03-02 18:37:09,947 - info: State: ON 2023-03-02 18:37:09,947 - error: Unexpected error in shutdown_event_loop(): gather() got an unexpected keyword argument 'loop' ^C Aborted!

I have the same problem and passed it by using the latest one in repository. Just clone repo and run python setup.py install

yehudi-dev avatar Jun 18 '24 01:06 yehudi-dev