LoginSignup
5
1

More than 5 years have passed since last update.

grpc-gatewayで使用する `google/api/annotations.proto` のインポート問題 python編

Posted at

grpc-gatewayの設定を書くために、 google/api/annotations.proto ファイルをインポートするのだが、そのために、吐き出したpythonのソースコードでも

from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2

のような記述があり、そんなものはないとインポートエラーになる。

Integration with other languages is partially broken によると、googleapis-common-protos をpipで入れればいいらしい。

$ pip install googleapis-common-protos
5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1