Open ganchengcaiyue opened 7 months ago
在云服务器上变成了 pydantic.error_wrappers.ValidationError: 1 validation error for ChatConfig root ChatConfig expected dict not str (type=type_error)
AttributeError: "load()" has been removed, use
yaml = YAML(typ='rt') yaml.load(...)
and register any classes that you use, or check the tag attribute on the loaded data, instead of file "E:\Bot\AS\LNTQQ\ganchengmoli\ganchengmoli\plugins\nonebot_plugin_learning_chat\config.py", line 78
yaml.load(
把ruamel.yaml的版本先降级到0.17.21吧
在云服务器上变成了 pydantic.error_wrappers.ValidationError: 1 validation error for ChatConfig root ChatConfig expected dict not str (type=type_error)
这个是配置文件出问题了,您打开看看内容是否正常
AttributeError: "load()" has been removed, use
yaml = YAML(typ='rt') yaml.load(...)
and register any classes that you use, or check the tag attribute on the loaded data, instead of file "E:\Bot\AS\LNTQQ\ganchengmoli\ganchengmoli\plugins\nonebot_plugin_learning_chat\config.py", line 78