-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Storage: cannot import name AnonymousCredentials #5038
Copy link
Copy link
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.packagingtype: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
Deploying an app we've been running for about a year now, and we noticed the API has changed, and we're seeing the error below at startup. The environment is Cloud Foundry, running on GCP. Here are the details:
- OS:
Ubuntu 14.04.5 LTS - Python 2.7.6
- requirements.txt is as follows:
Flask
gunicorn
scipy
h5py
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.0-cp27-none-linux_x86_64.whl
keras
Pillow
google-cloud
google-cloud-language
google-cloud-vision
google-cloud-storage
git+https://github.com/pivotal-partner-solution-architecture/pcf-gcp-python.git#egg=pcfgcp
Here is the stack trace (this is from an app deployed to Cloud Foundry):
2018-03-14T13:30:11.29-0600 [APP/PROC/WEB/0] ERR Traceback (most recent call last):
2018-03-14T13:30:11.29-0600 [APP/PROC/WEB/0] ERR File "image_matcher.py", line 41, in <module>
2018-03-14T13:30:11.29-0600 [APP/PROC/WEB/0] ERR from google.cloud import storage
2018-03-14T13:30:11.29-0600 [APP/PROC/WEB/0] ERR File "/app/.cloudfoundry/python/lib/python2.7/site-packages/google/cloud/storage/__init__.py", line 40, in <module>
2018-03-14T13:30:11.29-0600 [APP/PROC/WEB/0] ERR from google.cloud.storage.client import Client
2018-03-14T13:30:11.29-0600 [APP/PROC/WEB/0] ERR File "/app/.cloudfoundry/python/lib/python2.7/site-packages/google/cloud/storage/client.py", line 18, in <module>
2018-03-14T13:30:11.29-0600 [APP/PROC/WEB/0] ERR from google.auth.credentials import AnonymousCredentials
2018-03-14T13:30:11.29-0600 [APP/PROC/WEB/0] ERR ImportError: cannot import name AnonymousCredentials
2018-03-14T13:30:11.37-0600 [APP/PROC/WEB/0] OUT Exit status 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.packagingtype: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.