pypinfo-96fad88c6384.json
{
"type": "service_account",
"project_id": "pypinfo-167519",
"private_key_id": "redacted",
"private_key": "-----BEGIN PRIVATE KEY-----...redacted...-----END PRIVATE KEY-----\n",
"client_email": "moa-379@pypinfo-167519.iam.gserviceaccount.com",
"client_id": "109462256829445067003",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/moa-379%40pypinfo-167519.iam.gserviceaccount.com"
}
Ofek@Ofek-PC~ $ fromgoogle.cloud.bigqueryimportClientOfek@Ofek-PC~ $ client=Client.from_service_account_json(r'C:\Users\Ofek\AppData\Local\creds\pypinfo-96fad88c6384.json') xonsh: Tologfulltracebacktoafileset: $XONSH_TRACEBACK_LOGFILE=<filename>Traceback (mostrecentcalllast): File"C:\Users\Ofek\Desktop\q\Miniconda3\lib\site-packages\xonsh\__amalgam__.py", line14826, indefaultrun_compiled_code(code, self.ctx, None, 'single') File"C:\Users\Ofek\Desktop\q\Miniconda3\lib\site-packages\xonsh\__amalgam__.py", line2085, inrun_compiled_codefunc(code, glb, loc) File"<xonsh-code>", line1, in<module>File"C:\Users\Ofek\Desktop\q\Miniconda3\lib\site-packages\google\cloud\client.py", line71, infrom_service_account_jsonreturncls(*args, **kwargs) File"C:\Users\Ofek\Desktop\q\Miniconda3\lib\site-packages\google\cloud\bigquery\client.py", line83, in__init__project=project, credentials=credentials, _http=_http) File"C:\Users\Ofek\Desktop\q\Miniconda3\lib\site-packages\google\cloud\client.py", line211, in__init___ClientProjectMixin.__init__(self, project=project) File"C:\Users\Ofek\Desktop\q\Miniconda3\lib\site-packages\google\cloud\client.py", line167, in__init__project=self._determine_default(project) File"C:\Users\Ofek\Desktop\q\Miniconda3\lib\site-packages\google\cloud\client.py", line180, in_determine_defaultreturn_determine_default_project(project) File"C:\Users\Ofek\Desktop\q\Miniconda3\lib\site-packages\google\cloud\_helpers.py", line181, in_determine_default_project_, project=google.auth.default() File"C:\Users\Ofek\Desktop\q\Miniconda3\lib\site-packages\google\auth\_default.py", line282, indefaultraiseexceptions.DefaultCredentialsError(_HELP_MESSAGE) google.auth.exceptions.DefaultCredentialsError: Couldnotautomaticallydeterminecredentials. PleasesetGOOGLE_APPLICATION_CREDENTIALSorexplicitlycreatecredentialandre-runtheapplication. Formoreinformation, pleaseseehttps://developers.google.com/accounts/docs/application-default-credentials.
pypinfo-96fad88c6384.json