|
Post by jameslundberg on Jun 27, 2022 15:57:31 GMT
I'm getting an error on line 24 when running the redfishMockupCreate.py. It is looking for redfish_logger which is not in the redfish library.
"from redfish import redfish_logger"
|
|
|
Post by mraineri on Jun 27, 2022 16:32:20 GMT
Odd, it's right in the __init__ file for the library.
Can you send the output of "pip3 show redfish"?
|
|
|
Post by mraineri on Jun 27, 2022 16:36:26 GMT
Could you also send the output of "pip3 show python-redfish"? I know that package has a name conflict with the "redfish" module we publish.
|
|
|
Post by jameslundberg on Jun 27, 2022 16:58:10 GMT
(redfish) [ [email protected] mockup]$ pip3 show redfish Name: redfish Version: 3.1.6 Summary: Redfish Python Library Home-page: github.com/DMTF/python-redfish-libraryAuthor: DMTF, www.dmtf.org/standards/feedbackAuthor-email: License: BSD 3-clause "New" or "Revised License" Location: /home/jimlund/redfish/lib/python3.6/site-packages Requires: jsonpatch, jsonpath-rw, jsonpointer, requests, requests-toolbelt, requests-unixsocket Required-by:
|
|
|
Post by mraineri on Jun 27, 2022 17:24:44 GMT
It should install those automatically via pip (pip3 install -U redfish); pip should inspect requirements.txt to install dependencies.
Please also check if you have the python-redfish package installed. If you do, you will need to uninstall it with "pip3 uninstall python-redfish". There's a module name conflict, and the python-redfish module has not been maintained by the OCP community for several years now.
|
|
|
Post by jameslundberg on Jun 28, 2022 17:34:26 GMT
I have cleared this issue by reloading my wsl Ubuntu installation completely and did NOT install python-redfish this time and it has fixed that problem. Thanks for your feedback
|
|