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

SSL has no wrap_socket #165

Open
Inginn opened this issue May 31, 2024 · 3 comments
Open

SSL has no wrap_socket #165

Inginn opened this issue May 31, 2024 · 3 comments

Comments

@Inginn
Copy link

Inginn commented May 31, 2024

Hello.
I am runnig Arch with python 3.12.3-1
I am getting a error when trying to auth with my tv
I think this a problem with Python 3.12 changes to ssl but I dont have a clue how to fix this.

Traceback (most recent call last):
File "/opt/lgtv-venv/bin/lgtv", line 8, in
sys.exit(main())
^^^^^^
File "/opt/lgtv-venv/lib/python3.12/site-packages/LGTV/init.py", line 137, in main
ws.connect()
File "/opt/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'

@erenoglu
Copy link

+1 to this, it's now blocking the use of the app. It seems Python has changed something and applications need to adapt.

@Tenzer
Copy link
Collaborator

Tenzer commented Jun 15, 2024

LGWebOSRemote has an inherent issue here because the web socket dependency being used hasn't been updated since 2018, so it hasn't been updated with compatibility with Python 3.12 in mind.

I've been working on an alternative CLI for managing LG TVs which uses a different web socket library which does work with Python 3.12+. It doesn't have all the functionality LGWebOSRemote has but it might work for your needs: https://github.com/Tenzer/alga.

@erenoglu
Copy link

Thanks @Tenzer , I started using your version and it works well. But I missed screenOff function, so I created a feature request.

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

3 participants