0
点赞
收藏
分享

微信扫一扫

python grpc protobuf

Ichjns 2022-05-05 阅读 75
feedback    
    clean all environment
        sudo apt remove protobuf-compiler
        rm /usr/local/include/google -rf
        pip uninstall protobuf
        pip uninstall grpcio
        pip uninstall grpcio-tools

pip install grpcio-tools
    grpcio
    grpcio-tools
    demo运行正常
    
demo1 运行正常
    demo1分成两个proto
        python -c "import route_guide1_pb2"
            TypeError: Couldn't build proto file into descriptor pool!
                Invalid proto descriptor for file "route_guide1.proto":
                    pdbg/demo1/route_guide0.proto: Import "pdbg/demo1/route_guide0.proto" has not been loaded.
                    

solution:
	放弃此技术方案

举报

相关推荐

0 条评论