问题记录1:google/protobuf/descriptor
调用这个命令会提示错误: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