grpc-gateway python版中使用的” google / api / annotations.proto”的导入问题


我导入了google/api/annotations.proto文件以编写grpc-gateway设置,但由于这个原因,即使是吐出python源代码

1
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2

存在类似

的描述,如果没有这样的描述,将发生导入错误。

根据

与其他语言的集成被部分破坏,googleapis-common-protos应该被引入。

1
$ pip install googleapis-common-protos