I donβt think so. This error only happens if python-ilorest-library is installed.
OMD[central]:~$ python3
Python 3.9.10 (main, Jul 6 2022, 22:25:18)
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import redfish
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'redfish'
>>> exit()
OMD[central]:~$ pip3 install python-ilorest-library
Collecting python-ilorest-library
Using cached python-ilorest-library-3.5.0.2.zip (88 kB)
Collecting jsonpatch
Using cached jsonpatch-1.32-py2.py3-none-any.whl (12 kB)
Collecting jsonpath_rw
Using cached jsonpath-rw-1.4.0.tar.gz (13 kB)
Collecting jsonpointer
Using cached jsonpointer-2.3-py2.py3-none-any.whl (7.8 kB)
Collecting urllib3
Using cached urllib3-1.26.11-py2.py3-none-any.whl (139 kB)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting ply
Using cached ply-3.11-py2.py3-none-any.whl (49 kB)
Collecting decorator
Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB)
Using legacy 'setup.py install' for python-ilorest-library, since package 'wheel' is not installed.
Using legacy 'setup.py install' for jsonpath-rw, since package 'wheel' is not installed.
Installing collected packages: six, ply, jsonpointer, decorator, urllib3, jsonpath-rw, jsonpatch, python-ilorest-library
Running setup.py install for jsonpath-rw ... done
Running setup.py install for python-ilorest-library ... done
Successfully installed decorator-5.1.1 jsonpatch-1.32 jsonpath-rw-1.4.0 jsonpointer-2.3 ply-3.11 python-ilorest-library-3.5.0.2 six-1.16.0 urllib3-1.26.11
OMD[central]:~$ python3
Python 3.9.10 (main, Jul 6 2022, 22:25:18)
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import redfish
>>> redfish.redfish_client()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'redfish' has no attribute 'redfish_client'
>>>
>>> print(redfish.__version__)
3.5.0.0
With correct lib installed.
OMD[central]:~/local/lib/python3$ ll
total 4
drwxr-xr-x 5 central central 4096 Aug 18 18:48 cmk/
OMD[central]:~/local/lib/python3$ pip3 install redfish
Collecting redfish
Downloading redfish-3.1.6-py3-none-any.whl (40 kB)
|ββββββββββββββββββββββββββββββββ| 40 kB 1.9 MB/s
Collecting requests-unixsocket
Downloading requests_unixsocket-0.3.0-py2.py3-none-any.whl (11 kB)
Collecting requests-toolbelt
Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
|ββββββββββββββββββββββββββββββββ| 54 kB 2.8 MB/s
Collecting jsonpath-rw
Using cached jsonpath-rw-1.4.0.tar.gz (13 kB)
Collecting jsonpointer
Using cached jsonpointer-2.3-py2.py3-none-any.whl (7.8 kB)
Collecting jsonpatch
Using cached jsonpatch-1.32-py2.py3-none-any.whl (12 kB)
Collecting requests
Downloading requests-2.28.1-py3-none-any.whl (62 kB)
|ββββββββββββββββββββββββββββββββ| 62 kB 848 kB/s
Collecting ply
Using cached ply-3.11-py2.py3-none-any.whl (49 kB)
Collecting decorator
Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting certifi>=2017.4.17
Downloading certifi-2022.6.15-py3-none-any.whl (160 kB)
|ββββββββββββββββββββββββββββββββ| 160 kB 32.8 MB/s
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.11-py2.py3-none-any.whl (139 kB)
Collecting idna<4,>=2.5
Downloading idna-3.3-py3-none-any.whl (61 kB)
|ββββββββββββββββββββββββββββββββ| 61 kB 5.2 MB/s
Collecting charset-normalizer<3,>=2
Downloading charset_normalizer-2.1.0-py3-none-any.whl (39 kB)
Using legacy 'setup.py install' for jsonpath-rw, since package 'wheel' is not installed.
Installing collected packages: urllib3, idna, charset-normalizer, certifi, six, requests, ply, jsonpointer, decorator, requests-unixsocket, requests-toolbelt, jsonpath-rw, jsonpatch, redfish
Running setup.py install for jsonpath-rw ... done
Successfully installed certifi-2022.6.15 charset-normalizer-2.1.0 decorator-5.1.1 idna-3.3 jsonpatch-1.32 jsonpath-rw-1.4.0 jsonpointer-2.3 ply-3.11 redfish-3.1.6 requests-2.28.1 requests-toolbelt-0.9.1 requests-unixsocket-0.3.0 six-1.16.0 urllib3-1.26.11
OMD[central]:~/local/lib/python3$ cd
OMD[central]:~$ python3
Python 3.9.10 (main, Jul 6 2022, 22:25:18)
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import redfish
>>> redfish.redfish_client()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/omd/sites/central/local/lib/python3/redfish/rest/v1.py", line 1093, in redfish_client
if "://" not in base_url:
TypeError: argument of type 'NoneType' is not iterable
>>> print(redfish.__version__)
3.1.6
>>>