Skip to content

Commit

Permalink
Remove fixed version of google-cloud package (fix logger error in bac…
Browse files Browse the repository at this point in the history
…kground-update)

There is no specific reason to fix version and to manage this dependency differently (get last version), and it solved the issue below:

for recent image push I have this error with gcloud 0.21.0:

Traceback (most recent call last):
  File "./src/orchestrator/launch_backgroundupdate.py", line 8, in <module>
    init_gcloud_log(GCLOUD_PROJECT, u'background_update', IS_TEST_ENV)
  File "/usr/local/lib/python2.7/site-packages/common/log.py", line 14, in init_gcloud_log
    handler = CloudLoggingHandler(client, logger_name)
  File "/usr/local/lib/python2.7/site-packages/google/cloud/logging/handlers/handlers.py", line 80, in __init__
    self.transport = transport(client, name)
  File "/usr/local/lib/python2.7/site-packages/google/cloud/logging/handlers/transports/background_thread.py", line 154, in __init__
    http = client._connection.credentials.authorize(http)
AttributeError: 'Credentials' object has no attribute 'authorize'

It seems related to change:
googleapis/google-cloud-python#2726

Upgrade to 0.21.1 fix the issue.
  • Loading branch information
nicolaslecrique committed Dec 10, 2016
1 parent 65569c7 commit 8df1ce0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ numpy
scipy
gensim==0.13.1
nltk
google-cloud==0.21.0
google-cloud
pytz
vcrpy
bcrypt
Expand Down
2 changes: 1 addition & 1 deletion src/server/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Flask==0.11.1
google-cloud==0.21.0
google-cloud
gunicorn==19.6.0
oauth2client==2.0.2
httplib2
Expand Down

0 comments on commit 8df1ce0

Please sign in to comment.