Search code examples
pythonoracle-cloud-infrastructure

Why getting error config file not found in python for Oracle Cloud Infrastructure?


I am trying to connect OCI with Python API. I created start script to start the Oracle Cloud instance. But getting error "Could not find config file at {},".enter image description here enter image description here Can someone help on this error, please? I am running python script in visual studio code. Thanks in advance.


Solution

  • Please take a closer look at the error message. This is the part to pay close attention to: error

    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