You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
omsdk.http.sdkwmi requires winrm to function, but it is not in requirements.txt
Details
omsdk.http.sdkwmi imports functions from the winrm module, but this dependency is not expressed anywhere. That means that anyone installing this module from PyPi will get an error if they try and use that class. Given that Ansible also uses pywinrm (https://docs.ansible.com/ansible/latest/os_guide/windows_winrm.html#what-is-winrm), I'm guessing that this was missed by accident as it was already installed.
Repro Steps
pip install omsdk
Import omsdk.http.sdkwmi in a Python file.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.12/site-packages/omsdk/http/sdkwmi.py", line 25, in <module>
from winrm.transport import Transport
ModuleNotFoundError: No module named 'winrm'
Impact
Error when using omsdk.http.sdkwmi until user manually runs pip install pywinrm.
NeedBy
Whenever convenient.
Severity
Low.
The text was updated successfully, but these errors were encountered:
QwikContext
omsdk.http.sdkwmi
requireswinrm
to function, but it is not inrequirements.txt
Details
omsdk.http.sdkwmi
imports functions from thewinrm
module, but this dependency is not expressed anywhere. That means that anyone installing this module from PyPi will get an error if they try and use that class. Given that Ansible also usespywinrm
(https://docs.ansible.com/ansible/latest/os_guide/windows_winrm.html#what-is-winrm), I'm guessing that this was missed by accident as it was already installed.Repro Steps
pip install omsdk
omsdk.http.sdkwmi
in a Python file.Impact
Error when using
omsdk.http.sdkwmi
until user manually runspip install pywinrm
.NeedBy
Whenever convenient.
Severity
Low.
The text was updated successfully, but these errors were encountered: