I am converting some scripts to python3 and noticed the pip modules in use for python2 need to be added for python3. I am not using virtualenv so below is my fix on Ubuntu 17.10.
Missing module oci.
$ python3 OCI_Details.py -t ocid1.tenancy.oc1..aa...mn55caTraceback (most recent call last): File "OCI_Details.py", line 14, in <module> import oci,optparse,osModuleNotFoundError: No module named 'oci'Python2 module is there.
$ pip list --format=columns | grep ocioci 1.3.14Ubuntu has python3-pip
$ sudo apt install python3-pip$ pip3 install oci$ pip3 list --format=columns | grep ocioci 1.3.14Check my converted script.
$ python3 OCI_Details.py -t ocid1.tenancy.oc1..aaaaaa...5caOCI Details: 0.9.7..