-
Notifications
You must be signed in to change notification settings - Fork 13
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
AttributeError: module 'ssl' has no attribute 'wrap_socket' #32
Comments
Same issue |
I completely messed up a couple of days ago. It's been resolved. Also make sure you install the latest version of the LG TV Python scripts. |
I executed a |
Looks like this is the issue: klattimer/LGWebOSRemote#140 |
Ok thanks. Standing by till that gets resolved. 👍 |
Until LGWebOSRemote fixes the issue, I recommend you use Python 3.6 instead of the latest. pipx uninstall LGTV
brew uninstall --ignore-dependencies python
brew uninstall --force [email protected]
brew install [email protected] Then reinstall pipx and LGTV. |
Unfortunately that's not working for me - I get the following: % brew install [email protected] |
@Aurshur and it will not work. Installing (or reinstalling) pipx will automatically install python 3.12 - which is part of the problem. I am trying to come up with some workaround, but I doubt I will - all of this is too complex to me at the moment. |
I ran into the same issue - but actually got it working in the end as I used pip instead of pipx to install. |
I managed to overcome this as well, but pip3 wasn't the solution - it was showing different errors when installing LGTV. I somehow managed to use pipx and go through the whole process, despite various errors popping-up in the meantime. The sleep/wake-up function was working flawlessly for those few days, until yesterday. My M1 Mini received the update of mac os. Now, Hammerspoon is "not responding" when the lgtv_init script is loaded and the functionality is gone. Restarting doesn't help. I am not able to tell where is the matter, but it seems that some "element" of the whole puzzle changes and the script is not correct/compatible anymore. I am learning ver hard way, what actually means that "TV is not going to be a monitor" ;) This is my console. No errors, but tries to load the "external headphones" (słuchawki zewnętrzne) over and over. I have my M1 Mini connected through mini jack to the stereo system.
. |
EDIT I may have a fix. Still tinkering but insert the following at the top of .init.lua: print(hs.location.get()) Then reload the config and go to Security and Privacy in System settings - Location Services and give hammer spoon permission (it should now be listed). Seems to be working so far on my end! Sadly, I am finding myself in the exact same situation. Pretty frustrating that in the end it worked flawlessly for only a matter of days just to be defeated by a MacOS update. |
@Aurshur I appreciate so much all your support! My issue was of other sort. Very trivial. I noticed that, for unknown reason, TV disconnected from my WiFi. It didn't want to connect back (to both 2.4 and 5kHz), just showing generic error message. I must power cycle the router and restart my network. I found on the Internet, that unfortunately some of LG C2 have that kind of issue and frequently drops the connection. I will be observing my TV and see if/how often this will repeat. After reconnecting to the WiFi, script started to work again (which is logical). Yesterday I switched the connection to HDMI 2.1 cable and usb c->hdmi converter, to have 120Hz, RGB, 4:4:4 mode. However, I am only mentioning this "by the way". This isn't the script's issue and most probably won't be possible to solve by script, since it's coming most probably from the macos itself/converter. |
hi, getting this error with the new setup
lgtv auth 10.0.0.90 MyTV --ssl
Traceback (most recent call last):
File "/Users/name/.local/bin/lgtv", line 10, in
sys.exit(main())
^^^^^^
File "/Users/name/Library/Application Support/pipx/venvs/lgtv/lib/python3.12/site-packages/LGTV/init.py", line 137, in main
ws.connect()
File "/Users/name/Library/Application Support/pipx/venvs/lgtv/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'
The text was updated successfully, but these errors were encountered: