CMHopeSunshine / nonebot-plugin-learning-chat

Nonebot2插件,让Bot学习群友的发言和表情包。/ Nonebot2 plugin to learn what your group members say.
GNU Affero General Public License v3.0
155 stars 5 forks source link

运行报错 #56

Closed Shu-Ying closed 9 months ago

Shu-Ying commented 9 months ago

很抱歉我不懂Python, 我尝试解决这个问题失败 只能来发布Issues

nonebot给我的日志为:

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 "C:\Users\Administrator\Desktop\Bot\Diuse\src\plugins\nonebot_plugin_learning_chat\config.py", line 78

            yaml.load(
CMHopeSunshine commented 9 months ago

看来是依赖版本问题,试试 pip install ruamel.yaml==0.17.21,如果有使用虚拟环境那先激活虚拟环境

Shu-Ying commented 9 months ago

看来是依赖版本问题,试试 pip install ruamel.yaml==0.17.21,如果有使用虚拟环境那先激活虚拟环境

是依赖版本问题, 问题已经得到解决. 感激不尽