Please take a closer look at the error message. This is the part to pay close attention to:
Likely, the reason for the error is that the slashes in the path are facing two different directions /
and \
. Please update your code to use only \
in the file path and see if this resolves the issue.
If this still does not resolve the issue, please check that you have a config file saved at the path defined in your code: C:\Users\samukku\.oci\config
The reason the config file isn't supplied is because it uses resource identifiers which need to be defined based on your tenancy and compartment.
Here please refer https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/configuration.html for configuring the Config file.
Also refer https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/pythonsdk.htm this doc shall help in setting up the API if you missed out anything.
Thanks!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.