OSMH: API usage fail with error “AttributeError: module 'oci' has no attribute 'os_management_hub'”
in Linux
Applies to:
OSMH On-Prem
Goal :
OSMH API command "os_management_hub_client" failed with error
“AttributeError: module 'oci' has no attribute 'os_management_hub'”
Solution:
As per the release note, the minimal version should be v2.105.0 to support the OS
Management Hub service.
Here's the release note: https://github.com/oracle/oci-python-sdk/releases/tag/v2.105.0
- Run command below to confirm version of oci
$ sudo pip freeze | grep oci
- Upgrade oci using command below:
$ sudo pip3 install oci --upgrade
Tagged:
0