I am new to programming and am trying to import the existing GCP resources using python. But I am getting this particular "Default Credentials Error" at the starting of the code itself. Any help is appreciated.
Exception has occurred: DefaultCredentialsError
Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see https://cloud.google.com/docs/authentication/getting-started
File "C:\Users\dilee\Desktop\Python\GCP\start.py", line 4, in <module>
publisher = pubsub_v1.PublisherClient()
Second Error
Exception has occurred: DefaultCredentialsError
File "C:\Users\dilee\Desktop\PythonGCP\learning-project-311506-1b36ea6ccc86.json" was not found.
File "C:\Users\dilee\Desktop\PythonGCP\start.py", line 6, in <module>
publisher = pubsub.PublisherClient()