Closed S-Mann closed 4 years ago
Sorry but in my relative path there was a file called "redfish.py" which the import was trying to read by default.
Downgraded my version from 3.0.0 to 2.5.2 and it worked. Make sure there is no redfish.py in the same directory as well.
I have properly installed the ilorest library.
I am using a virtualenv and it's a clean install
(venv_redfish) ~/Project$ pip install python-ilorest-library Processing ../python_ilorest_library-2.5.2-cp36-none-any.whl Requirement already satisfied: six in ... (1.12.0) Requirement already satisfied: jsonpointer in ... (2.0) Requirement already satisfied: jsonpath-rw in ... (1.4.0) Requirement already satisfied: jsonpatch in ... (1.24) Requirement already satisfied: urllib3 in ... (1.25.6) Requirement already satisfied: decorator in ... (4.4.0) Requirement already satisfied: ply in ... (3.11) Installing collected packages: python-ilorest-library Successfully installed python-ilorest-library-2.5.2
But when I try
import redfish.ris
I get "Exception has occurred: ModuleNotFoundError No module named 'redfish.ris'; 'redfish' is not a package"