Skip to content

tts-backup.py - ModuleNotFoundError: No module named 'oci' #54

@martinberger-ch

Description

@martinberger-ch

Hi

I did a test setup for TTS migration to ADB Serverless according https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/using-transportable-tablespaces.html#GUID-F0F71B4B-CED2-49E6-8D26-C4D0A96213A2.

Source is OL8 / 19c database. The Oracle Database Cloud Backup Module is configured an tested by successful RMAN backups. OCI Buckets are created and the user configured in Backup Module is able to use the buckets.

When running the Python script, this error occurs:

python3 /u01/app/oracle/stage/tts_project/tts-backup.py --DRY_RUN=TRUE Traceback (most recent call last): File "/u01/app/oracle/stage/tts_project/tts-backup.py", line 82, in <module> import oci ModuleNotFoundError: No module named 'oci'

There is no prerequisite installing OCI CLI module first, is this point missing in documentation? The situation can be solved by:
sudo dnf install python3-pip pip3 install oci

Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions