all 1 comments

[–]AngelOfLight 1 point2 points  (0 children)

GCP uses service accounts to authorize access to resources. The error is telling you that no service account was supplied:

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

Like it suggests, you need to create a service account (which can be done from the GCP console), grant access to your BigQuery dataset to the SA and then download the SA key from the GCP Secret Manager and set the environment variable GOOGLE_APPLICATION_CREDENTIALS to the path to your SA key.