raman325 / pyvizio

Python client for Vizio SmartCast
MIT License
105 stars 29 forks source link

RuntimeError: Event loop is closed | when attempting pair #115

Open ryanbender2 opened 3 years ago

ryanbender2 commented 3 years ago

When trying to do a pair attempt (pyvizio --ip={ip:port} --device_type={device_type} pair) I keep getting a runtime error that closes the main loop.

Stack Trace:

INFO:pyvizio.cli:Initiating pairing process, check your device for pin upon success INFO:pyvizio.cli:Challenge type: 1 INFO:pyvizio.cli:Challenge token: 208779 Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000002251D4DC8B0> Traceback (most recent call last): File "c:\users\"user"\appdata\local\programs\python\python38\lib\asyncio\proactor_events.py", line 116, in del self.close() File "c:\users\"user"\appdata\local\programs\python\python38\lib\asyncio\proactor_events.py", line 108, in close self._loop.call_soon(self._call_connection_lost, None) File "c:\users\"user"\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 719, in call_soon self._check_closed() File "c:\users\"user"\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 508, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed

raman325 commented 3 years ago

Hi @ryanbender2 how are you running the CLI? Are you using the command line and running these commands manually? That shouldn't happen from what I can see. This error should also have no impact on your ability to continue through the pairing process although let me know if you disagree