美文网首页
问题记录1:google/protobuf/descriptor

问题记录1:google/protobuf/descriptor

作者: bonnie_xing | 来源:发表于2019-03-22 21:08 被阅读0次

调用这个命令会提示错误:google/protobuf/descriptor.proto: File not found

protoc -I=/usr/local/include/google/protobuf/ -I=./ --python_out=./ ./user_asset_interface_service.proto


[ops account_test]$ protoc -I=/usr/local/include/google/protobuf/ -I=./ --python_out=./ ./user_asset_interface_service.proto

google/protobuf/descriptor.proto: File not found.

srpc.proto: Import "google/protobuf/descriptor.proto" was not found or had errors.

srpc.proto:6:8: "google.protobuf.ServiceOptions" is not defined.

srpc.proto:10:8: "google.protobuf.MethodOptions" is not defined.

user_asset_interface_service.proto: Import "srpc.proto" was not found or had errors.

[ops account_test]$


修改:去掉部分后缀后,运行成功

protoc -I=/usr/local/include/ -I=./ --python_out=./ ./user_asset_interface_service.proto

相关文章

网友评论

      本文标题:问题记录1:google/protobuf/descriptor

      本文链接:https://www.haomeiwen.com/subject/yerdvqtx.html