Import Error - SNIMissingWarning
Closed this issue · 1 comments
QwikContext
With urllib3 > 1.26.11 importing omsdk fails with an error that SNIMissingWarning is undefined
Details
SLES 15.4 with Python 3.10. Importing OMSDK to use dellemc.openmanage module in ansible.
Getting an error any time I try to invoke "dellemc.openmanage.idrac_reset" that OMSDK must be installed - however it is installed.
Further debugging reveals that it is failing on import due to this line in omsdk/http/sdkhttpep.py (line28):
from requests.packages.urllib3.exceptions import SNIMissingWarning
After release 1.26.11 urllib3 removed this definition
Repro Steps
With urllib3 > 1.26.11 attempt to import omsdk.
Impact
Loss of function for OMSDK and dependent packages like dellemc.openmanage.
NeedBy
When do you need this issue fixed
Severity
What is the severity of the issue.
Just ran into this myself.
SNIMissingWarning
was removed in urllib 2.0.0
My temporary fix is to run pip install “urllib3>=1.26.14,<2.0”
before installing omsdk.