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

【bug】win端访问web失败404 #31

Closed Agnes4m closed 1 year ago

Agnes4m commented 1 year ago
CMHopeSunshine commented 1 year ago

请确保你已成功加载本插件,并在本插件的配置中开启了enable_web选项

Agnes4m commented 1 year ago

我确保插件成功加载,并且配置已开启 image

但是我注意到,收集聊天信息会出现以下报错,每一句都触发,同时web端无法访问 image image

CMHopeSunshine commented 1 year ago

这是和其他使用了tortoise-orm的插件产生了冲突,尝试重启几次或调整一下插件加载顺序,tortoise-orm这个问题太玄学了本插件没办法百分比解决

Agnes4m commented 1 year ago

即使在加载插件只有本插件和定时插件的情况下,仍然是这种报错 image image

CMHopeSunshine commented 1 year ago

我大概知道问题了,将fastapi升级到最新版,(进入虚拟环境)pip install fastapi -U或者pip install nonebot2[fastapi] -U 由于nonebot2 rc4版本修改了启动钩子函数,需要把fastapi升到0.93.0以上版本才能运行启动钩子

Agnes4m commented 1 year ago

感谢大佬,解决问题

Agnes4m commented 1 year ago

顺便再提一个小建议,在搭配插件时nonebot-plugin-miao

数据库会记录带有口癖的内容,导致学习输出的时候会带双倍的口癖

CMHopeSunshine commented 1 year ago

这个没办法,不会考虑跨插件相关