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

Import Error - SNIMissingWarning #33

Closed
john-moran2 opened this issue May 9, 2023 · 1 comment · Fixed by #35
Closed

Import Error - SNIMissingWarning #33

john-moran2 opened this issue May 9, 2023 · 1 comment · Fixed by #35

Comments

@john-moran2
Copy link

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.

@cnf
Copy link

cnf commented May 22, 2023

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.

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

Successfully merging a pull request may close this issue.

2 participants