0
Ich versuche, mit Google BigQuery zu verbinden, aber ich bin immer diese Fehlermeldung:BigQuery mehrere Werte für die Keyword-Argument ‚Projekt‘ bekam
ERROR api Query failure: __init__() got multiple values for keyword argument 'project'
Dies ist, wie ich tue:
from google.cloud import bigquery
CREDENTIALS_BIGQUERY = dotenv.get_key(dotenv_path, 'CREDENTIALS_BIGQUERY')
bigquery_client = bigquery.Client.from_service_account_json(CREDENTIALS_BIGQUERY, 'project-id123')
CREDENTIALS_BIGQUERY ist seine json:
{
"type": "service_account",
"project_id": "roas-xxx",
"private_key_id": "xxxx",
"private_key": "xxxxn-----END PRIVATE KEY-----\n",
"client_email": "[email protected]",
"client_id": "xxxx",
"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/cxxxerts",
"client_x509_cert_url": "https://www.googleapis.com/xxx"
}