Reputation: 1
I am a newbie of GCP. I tried to play with GCP Translation API in GCP Datalab. I setup as procedure in here(by directly input command in Datalab's Notebook)
The last lines showed that the installation was successful. But it has some red portion indicated dependencies issue. Later I exported path of my service key to GOOGLE_APPLICATION_CREDENTIALS. Later I checked auth and found no error.
gcloud auth application-default print-access-token
Later I added sample code from GCP Quick start and found error.
ContextualVersionConflict: (google-cloud-core 0.28.1 (/usr/local/envs/py2env/lib/python2.7/site-packages), Requirement.parse('google-cloud-core<2.0dev,>=1.1.0'), set(['google-cloud-translate']))
gcp_translation_api_error0 gcp_translation_api_error1
Please help me how to solve this dependency issue. Note that I selected Python2 in Datalab's Notebook.
Upvotes: 0
Views: 63