【grpc】[Python] A file with this name is already in the pool

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-17 00:05   32   0

1.问题报错

rank.proto: A file with this name is already in the pool.

[E 210422 14:48:32 flask_server:87] grpc请求执行失败,详细信息:Couldn't build proto file into descriptor pool!
    Invalid proto descriptor for file "rank.proto":
      rank.proto: A file with this name is already in the pool.

2.解决方法

(1) 查看当前protobuf版本,假设为3.12.2
pip3 show protobuf

(2)卸载该版本
pip uninstall protobuf

(3)采用如下方式,重新安装对应的版本
pip install --no-binary protobuf protobuf==3.12.2

参考https://github.com/protocolbuffers/protobuf/issues/3002

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP