In this page, we will address some common issues that the developers often face while working with AI Platform samples and provide solutions.
- Run
gcloud initin your terminal and follow the instructions. - Run
gcloud compute instances listto make sure the API for Compute is enabled. - Run
gcloud ai-platform models listto make sure the API for AI Platform is enabled. - Run
gsutil ls gs://to make sure you have access to GCS. - Run
gcloud infoto get more information about your configuration.
- Make sure you have followed the setup steps.
- Verify that the APIs are enabled.
- Verify that the environment variables are set correctly.
- Confirm that
GOOGLE_APPLICATION_CREDENTIALSis pointing to the correct service account key file for your GCP project. Also, make sure the ervice account file is for your current GCP project and that it has the right roles, as specified in the setup page. - Run
gcloud config listand verify the account and the project are set correctly.
This is a known issue which occurs when you are using Python 3. It will be fixed in upcoming releases.