Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lgtv auth not working C2 or C3 #143

Closed
Aurshur opened this issue Dec 7, 2023 · 3 comments
Closed

lgtv auth not working C2 or C3 #143

Aurshur opened this issue Dec 7, 2023 · 3 comments

Comments

@Aurshur
Copy link

Aurshur commented Dec 7, 2023

I've hit a wall with the below issue, scan identifies both my C2 and C3 on the network, but if I try to authenticate either of them I get the following:

(lgtv-venv) ~ % lgtv auth 192.168.178.61 MyTV ssl
lgtv auth <tv_name>
(lgtv-venv) ~ % lgtv auth 192.168.178.61 MyTV
192.168.178.61 MyTV
DEBUG:getmac:Initializing 'ip4' method cache (platform: 'darwin')
DEBUG:getmac:Finished initializing 'ip4' method cache
DEBUG:getmac:Raw MAC found: 1234
Traceback (most recent call last):
File "/Users/1/lgtv-venv/bin/lgtv", line 8, in
sys.exit(main())
^^^^^^
File "/Users/1/lgtv-venv/lib/python3.12/site-packages/LGTV/init.py", line 160, in main
ws.connect()
File "/Users/1/lgtv-venv/lib/python3.12/site-packages/ws4py/client/init.py", line 224, in connect
bytes = self.sock.recv(128)
^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 54] Connection reset by peer

@klattimer
Copy link
Owner

I would suggest updating to the latest code, things have changed somewhat and you might need to address the command line that you're using as it has been updated.

@Aurshur
Copy link
Author

Aurshur commented Dec 11, 2023

Thanks!

I've gone ahead and updated but now and I'm now getting the same error as in this issue:

#140 (comment)

[(lgtv-venv) 1@Mac-mini ~ % lgtv --ssl auth 192.168.178.61 C3
192.168.178.61 C3
DEBUG:getmac:Initializing 'ip4' method cache (platform: 'darwin')
DEBUG:getmac:Finished initializing 'ip4' method cache
DEBUG:getmac:Raw MAC found: 1234
Traceback (most recent call last):
File "/Users/1/lgtv-venv/bin/lgtv", line 8, in
sys.exit(main())
^^^^^^
File "/Users/1/lgtv-venv/lib/python3.12/site-packages/LGTV/init.py", line 160, in main
ws.connect()
File "/Users/1/lgtv-venv/lib/python3.12/site-packages/ws4py/client/init.py", line 214, in connect
self.sock = ssl.wrap_socket(self.sock, **self.ssl_options)
^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'

@klattimer
Copy link
Owner

OK lets close this and you should track that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants