Closed Dabbsy closed 1 year ago
Are you running it as a different user?
Just run the following command and that should fix this error:
pip install oci
Many thanks for the quick response @AnykeyNL - simple solution and it worked :-) Now, just need to find out how or why the issue was introduced! But important thing is it's working again.
We had this running fine, but it's stopped working overnight for no logical reason we can ssee. [2023-01-13 12:44:33] BEGIN shell script execution with /bin/sh -ex [2023-01-13 12:44:33] + python3 infrastructure/autoscale/AutoScaleALL.py -topic -ip
[2023-01-13 12:44:33] Traceback (most recent call last):
[2023-01-13 12:44:33] File "infrastructure/autoscale/AutoScaleALL.py", line 29, in
[2023-01-13 12:44:33] import oci
[2023-01-13 12:44:33] ModuleNotFoundError: No module named 'oci'
[2023-01-13 12:44:33] END shell script execution
The AutoScaleALL.py has the following first line
!/home/opc/py36env/bin/python
Lines 2-28 are comments, then line 29 is import oci
Gut feel is either python version somewhere has been upgraded, or there's another reason why it's not importing the modules, but how can I check this out to confirm where the issue is?