HewlettPackard / python-ilorest-library

Python library for interacting with devices which support a Redfish Service
Apache License 2.0
187 stars 92 forks source link

Please add some fallback if rdmc_helper can't get imported #138

Closed tijuca closed 1 year ago

tijuca commented 1 year ago

The latest release 4.0.0.0 had added the following line within src/redfish/ris/resp_handler.py

...
from rdmc_helper import IloLicenseError, ScepenabledError
...

but the used classes (coming from https://github.com/HewlettPackard/python-redfish-utility/blob/master/src/rdmc_helper.py) can't get imported as usual, there is no library providing this part.

Means, either python-redfish-utility should get added a library thing so it's usable as a Python library or please use some try: except: wrapper around the used import so there is no hard dependency on the imported classes. This issues is preventing me from updating the ilorest library in Debian.

Or please provide some suggestion how I can handle this dependency.

rajeevkallur commented 1 year ago

This is fixed in 4.1 (latest code)