-
Notifications
You must be signed in to change notification settings - Fork 188
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
Tinytuya unable to import due to outdated openSSL #377
Comments
TinyTuya uses the Workaround: # remove urllib3 v2
pip uninstall urllib3
# install older version that support openssl v1.1.0
pip install urllib3==1.26.5 I need to research if there is a good way we can address this. Since urllib3's decision to remove support for OpenSSL < 1.1.1, many other projects are impacted due to the transitive dependencies in python modules. Any suggestions or PRs appreciated. 😁 |
While it won't fix it, perhaps we should wrap that import in a try/except and print a message if it fails. That would at least allow local control to keep working. |
Ooooh! That's a great idea. I wonder if this would work... try:
import requests
except ImportError as impErr:
print("WARN: Unable to import requests library, Cloud functions will not work.")
print("WARN: Check dependencies. See https://github.com/jasonacox/tinytuya/issues/377")
print("WARN: Error: {}.".format(impErr.args[0])) @Frefdt can you try this (just paste into a python prompt)? Also, what OS are you using? |
Also workaround worked just fine, thank you for the quick responses :) |
Thanks @Frefdt ! @uzlonewolf I thought about folding this into #370 but don't want to conflate it - I think we make this a minor patch (v1.12.9). |
Sounds like the best idea- just tested on a fresh vm and had the same issue so don't think it's an issue with my config specifically |
Handle import issue with urllib3 #377
The text was updated successfully, but these errors were encountered: