yuudi / yobot

aide bot for pcr (mobile game) 公主连接群聊机器人
https://yobot.win
GNU General Public License v3.0
573 stars 270 forks source link

[BUG] 网页端打开异常,进入面板提示Server Error #200

Closed IgNit3R closed 3 years ago

IgNit3R commented 3 years ago

[2020-12-09 18:44:08,582 hoshino.modules.yobot.yobot.src.client.ybplugins.clan_battle.battle] ERROR: The future belongs to a different loop than the one specified as the loop argument Traceback (most recent call last): File "D:\lib\hoshino_xcw\XCW\hoshino\hoshino\modules\yobot\yobot\src\client\ybplugins\clan_battle\battle.py", line 1606, in yobot_clan_api bossData, notice = await asyncio.wait_for( File "C:\Program Files\Python38\lib\asyncio\tasks.py", line 475, in wait_for fut = ensure_future(fut, loop=loop) File "C:\Program Files\Python38\lib\asyncio\tasks.py", line 675, in ensure_future raise ValueError('The future belongs to a different loop than ' ValueError: The future belongs to a different loop than the one specified as the loop argument

yuudi commented 3 years ago

这个错误可能是由于某个 hoshinobot 的插件与 yobot 依赖冲突造成的,请不要将 yobot 作为 hoshinobot 的插件部署,yobot 也即将结束对 hoshinobot 插件版的支持。

kennywang-ubi commented 3 years ago

这个问题应该是yobot-battle与hoshinobot的那个色图插件冲突导致的,两者都存在对于asyncio.ensure_future的event-loop调用,大概是混用导致了在处理event_loop的时候互相矛盾导致报错

如果想简单处理这个冲突问题的话就是把hoshino的色图插件ban掉,或者把它的脚本里涉及ensure_future的相关模块注掉就可以了