oracle/oci-python-sdk

problems running in CLI OCI

walzatem06 opened this issue · 3 comments

hello, I am trying to run this and I get the following errors, everything I run from OCI cloud shell

python3 showoci.py -i
Traceback (most recent call last):
File "showoci.py", line 566, in
execute_extract()
File "showoci.py", line 179, in execute_extract
data = ShowOCIData(flags)
File "/home/walzatem/oci-python-sdk/examples/showoci/oci-python-sdk/examples/showoci/showoci_data.py", line 46, in init
self.service = ShowOCIService(flags)
File "/home/walzatem/oci-python-sdk/examples/showoci/oci-python-sdk/examples/showoci/showoci_service.py", line 559, in init
self.generate_signer_from_config(flags.config_file, flags.config_section)
File "/home/walzatem/oci-python-sdk/examples/showoci/oci-python-sdk/examples/showoci/showoci_service.py", line 571, in generate_signer_from_config
user=self.config["user"],
KeyError: 'user'

You should check the instructions at this page - https://github.com/oracle/oci-python-sdk/tree/master/examples/showoci#3-executing-showoci-using-different-options

To run from cloud shell, you need to use
python3 showoci.py -i -dt

thank you it worked without problems

Thank you, can you please close the ticket if all good