Langchain-Chatchat icon indicating copy to clipboard operation
Langchain-Chatchat copied to clipboard

'NoneType' object has no attribute 'message_types_by_name'报错

Open mls2009 opened this issue 1 year ago • 2 comments

_HISTOGRAMPROTO = DESCRIPTOR.message_types_by_name['HistogramProto']

AttributeError: 'NoneType' object has no attribute 'message_types_by_name'

环境是python3.10

mls2009 avatar Apr 24 '23 16:04 mls2009

3.8可以我的是就行可以运行出来,可以换下试试

zqt996 avatar Apr 24 '23 16:04 zqt996

我用的也是3.10也遇到这个问题,改python有点麻烦,我选择的是改依赖的版本。我卸载protobuf重新装这个版本。起码这个问题不会报了。 pip3 install protobuf==3.19.3

gdchaochao avatar Apr 28 '23 06:04 gdchaochao

我用的也是3.10也遇到这个问题,改python有点麻烦,我选择的是改依赖的版本。我卸载protobuf重新装这个版本。起码这个问题不会报了。 pip3 install protobuf==3.19.3

使用Colab时这个问题依然存在,似乎是Colab自己不允许降级的原因

sawyerbutton avatar Jul 11 '23 03:07 sawyerbutton