Langchain-Chatchat
Langchain-Chatchat copied to clipboard
注意:如果安装错误,注意这两个包的版本 wandb==0.11.0 protobuf==3.18.3
Error1: 如果启动异常报错 protobuf 需要更新到 protobuf==3.18.3
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not 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).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Error 2: 如果启动异常报错 wandb, 需要更新到 wandb==0.11.0
File "/usr/local/miniconda3/lib/python3.10/site-packages/wandb/proto/v3/wandb_internal_pb2.py", line 16, in <module>
from wandb.proto import wandb_base_pb2 as wandb_dot_proto_dot_wandb__base__pb2
File "/usr/local/miniconda3/lib/python3.10/site-packages/wandb/proto/wandb_base_pb2.py", line 6, in <module>
from wandb.proto.v3.wandb_base_pb2 import *
File "/usr/local/miniconda3/lib/python3.10/site-packages/wandb/proto/v3/wandb_base_pb2.py", line 21, in <module>
__RECORDINFO = DESCRIPTOR.message_types_by_name['_RecordInfo']
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'
注意最好使用下面两个老版本的 wandb 和 protobuf
## 补丁
wandb==0.11.0
protobuf==3.18.3
https://github.com/imClumsyPanda/langchain-ChatGLM/tree/9dee1f28c012d6ffacf97353c2db943679c962ab