2023/12/1软件工程日报

发布时间 2023-12-01 22:52:53作者: 努力学习2333

TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
执行ER-NERF数据处理步骤2报错解决

在当前conda环境下

pip uninstall protobuf

重新安装3.19.0

pip install protobuf==3.19.0