I can do quick test in virtual enviromt(it's build into Python in you do not know trough
venv)
Do this from command line.
which python
# Or which python 3 if you use that
Make sure it point to your version.
/home/user/.local/lib/python3.8
Start interpreter.
λ python
Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import omsdk
>>>
>>> dir(omsdk)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'main']
>>> omsdk.main()
Welcome to Dell OpenManage SDK
# File shall point to your python3.8/site-packages
>>> omsdk.__file__
'G:\\div_code\\image_env\\lib\\site-packages\\omsdk\\__init__.py'
# Test import
>>> from omsdk.sdkproto import SNMPOptions
>>>
>>> dir(omsdk)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'http', 'main', 'sdkcenum', 'sdkcreds', 'sdkentitymib', 'sdkprint', 'sdkproto', 'sdkprotobase', 'sdkprotopref', 'sdksnmp', 'sdkunits', 'simulator', 'version']
dir(omsdk.sdkproto)
['CredentialsEnum', 'EntityCompEnum', 'EntityComponentTree', 'EntityMibConvertor', 'EntitySNMPViews', 'Enum', 'EnumWrapper', 'PCONSOLE', 'PREDFISH', 'PREST', 'PSNMP', 'PWSMAN', 'PY2', 'PY3', 'PrettyPrint', 'ProtoPreference', 'ProtocolCredentialsFactory', 'ProtocolEnum', 'ProtocolFactory', 'ProtocolFactoryIterator', 'ProtocolOptions', 'ProtocolOptionsFactory', 'ProtocolWrapper', 'RedfishOptions', 'RedfishProtocol', 'RestOptions', 'RestProtocol', 'SNMPOptions', 'SNMPProtocol', 'Simulation', 'Simulator', 'TypeHelper', 'UnitsFactory', 'WSMANOptions', 'WsManOptions', 'WsManProtocol', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'chain', 'copy', 'datetime', 'json', 'logger', 'logging', 'os', 're', 'sys']
Common problem make sure you have not name a file
omsdk.py
or any other name that shadow the import from omsdk.