Closed xf- closed 10 months ago
same issue with the recent pull, the work around is already in the code but still same error. I have very basic knowledge with python but will try to debug.
Workaround for me Generated __init__.py skips the 3rd argument args = parseargs(sys.argv[2], sys.argv[4:])
I believe this is fixed in a recently merged PR.
@klattimer The error is gone, but it feels completely broken. I get no output at all.
(No IP change - I can ping and scan it)
lgtv TV swInfo
Output for auth
Traceback (most recent call last):
File "/usr/bin/lgtv", line 33, in <module>
sys.exit(load_entry_point('LGTV==0.3', 'console_scripts', 'lgtv')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/LGTV/__init__.py", line 160, in main
ws.connect()
File "/usr/lib/python3.11/site-packages/ws4py/client/__init__.py", line 224, in connect
bytes = self.sock.recv(128)
^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer
@xf- You now need to run the commands as lgtv --name TV swInfo
or lgtv -n TV swInfo
.
Done - works for me - other issue was SSL related.
Created a new issue regarding maybe adding default arguments for SSL and TV name argument in config.
Problem
The CLI worked fine for long time, but now every command with argument fails
results in
Tried
zsh
andbash
(just to avoid some unrelated issue).Version
514be54 build on Arch and rebuild just now to avoid more unrelated issues.
Python
Workaround for me
Generated
__init__.py
skips the 3rd argumentargs = parseargs(sys.argv[2], sys.argv[4:])