This repository was archived by the owner on Mar 12, 2025. It is now read-only.
gRPC code isn't (re)generated for protos containing service definitions #12
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I found that when trying to implement the LongRunning Operations service, there was no
OperationsServicer
base class in the generated code, only theOperationsStub
class.I would normally expect this class (and the
add_OperationsServicer_to_server()
method) to be generated: https://grpc.io/docs/languages/python/generated-code/What I noticed upon inspection of this repository is that the file
google/longrunning/operations_grpc_pb2.py
only has theOperationsStub
class. Additionally, innoxfile.py
, thegenerate_protos()
method never actually regenerates the grpc generated code. A--grpc_python_out
argument would be required somewhere in thegrpctools.protoc
call.Environment details
googleapis-common-protos
version: 1.52.0Steps to reproduce
Attempt to use the expected
OperationsServicer
class, as in the following snippet.Code example
Stack trace
The text was updated successfully, but these errors were encountered: