Python3项目报错This program was compiled against version 2.6.1 of the Protocol Buffer runtime library
完整报错
[libprotobuf FATAL google/protobuf/stubs/common.cc:87] This program was compiled against version 2.6.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.15.8). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "/build/mir-O8_xaj/mir-0.26.3+16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".) terminate called after throwing an instance of 'google::protobuf::FatalException' what(): This program was compiled against version 2.6.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.15.8). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "/build/mir-O8_xaj/mir-0.26.3+16.04.20170605/obj-x86_64-linux-gnu/src/protobuf/mir_protobuf.pb.cc".)
项目之前能够正常运行,这个报错之前从来没遇到过。在部署了一个分割模型后报错。网上的解决方法也相对复杂。
由于赶时间,还是想办法绕开这个报错。重新在docker中安装新加入部分所需的各种依赖,发现是wandb问题,因此
pip uninstall -y wandb
即可。但还没有找到正常构建wandb的方法。