Home ยป gcp

gcp

gcp_python_spreadsheets

Solved: “The caller does not have permission” – Using the API with a private Google Spreadsheet

  • by

Ahh, user rights. The cause and solution to all of life’s identification problems. In this blog post I explain how you can access (private) google spreadsheets using the Python gspread library. Before you get started: make sure you have administrator rights to the spreadsheets you are trying to work with.… Read More »Solved: “The caller does not have permission” – Using the API with a private Google Spreadsheet

ai-platform-csv

Reading from and writing files to GCP Storage in an AI Platform job

  • by

When you’re trying to access a CSV file stored in Google Cloud Storage when submitting a job to AI Platform, your first reflex is probably to use pandas’ read_csv. However, this will produce the following error: ImportError: The gcsfs library is required to handle GCS files That’s because pandas is… Read More »Reading from and writing files to GCP Storage in an AI Platform job

Creating a GCP Service Account and linking it to your system

  • by

When you haven’t gone through the Google Cloud Platform authentication process in your development environment, you might run into the following error message. In this blog post, I explain how you can solve it. google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the… Read More »Creating a GCP Service Account and linking it to your system