Hi! I have just had the same issue in my conda environment In Windows.
It is a mismatch of google python packages I had, using google-cloud-storage 1.16.0 with some outdated google packages. I assume that the main mismatch was with google-cloud-core that was in version 0.29.1. I have updated to google-cloud-core-1.0.0 and google-api-core-1.11.0 and the issue is solved. Now the Connection base class (in google/cloud/_http) accepts the ClientInfo argument. Hope it helps!! BR, Víctor El jueves, 30 de mayo de 2019, 4:33:16 (UTC+2), Jerome Massot escribió: > > Hi all, > > I have the following annoying problem. It appears today... but I have run > this snippet thousands of time without any issue :( > > # export the key location into the system path > os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "key.json" > > bucket = storage.Client().get_bucket( > args['bucket_id'] > ) > > and the run returns: > > Traceback (most recent call last): File "labelled_sentence_generator.py", > line 223, in <module> bucket = storage.Client().get_bucket( File > "/usr/local/lib/python2.7/dist-packages/google/cloud/storage/client.py", > line 86, in __init__ self._connection = Connection(self, > client_info=client_info) File > "/usr/local/lib/python2.7/dist-packages/google/cloud/storage/_http.py", > line 33, in __init__ super(Connection, self).__init__(client, > client_info)TypeError: __init__() takes exactly 2 arguments (3 given) > > Thanks for any help :) > > Best regards > > Jerome > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/7430d11f-e057-47f1-8091-9ad8a6897f01%40googlegroups.com.
