Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OSMH: API usage fail with error “AttributeError: module 'oci' has no attribute 'os_management_hub'”

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 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!