Closed bjwatson closed 7 years ago
FYI @nathanielmanistaatgoogle. I can close this issue if you end up solving this problem in grpc-python.
I've opened grpc issue 8056 for the discussion.
Thanks @nathanielmanistaatgoogle.
This is fixed by gRPC 1.0.2
What
The import of
operations_pb2.py
fromgoogleapi-common-protos
should work with or without gRPC. If the gRPC dependency is present, then it should include the long-running operations (LRO) service methods. This is currently working ingoogleapi-common-protos
1.3.4, but it was done manually. We wantpackman
to handle this automatically for future releases.Why
Google App Engine Standard for Python does not currently support gRPC, and needs to use the HTTP/JSON mode of https://github.com/GoogleCloudPlatform/gcloud-python/. There may be other use cases that would also prefer or require HTTP/JSON.
googleapi-common-protos
now has a soft dependency on gRPC to support the LRO service methods, and we need to make sure thatoperations_pb2.py
can be imported with or without gRPC.How
See what I manually did with
generated/python/googleapis-common-protos/google/longrunning/operations_pb2.py
in https://github.com/googleapis/api-client-staging/pull/1 for version 1.3.4 ofgoogleapi-common-protos
.