bili-notice-hoshino icon indicating copy to clipboard operation
bili-notice-hoshino copied to clipboard

Python3.9.x 版本下插件加载失败~

Open DaiShengSheng opened this issue 8 months ago • 1 comments

2024-06-25 16:09:41.079 | INFO | hoshino.modules.bili-notice-hoshino.dymgr::197 - Load up list success: 0 [2024-06-25 16:09:41,098 nonebot] ERROR: Failed to import "hoshino.modules.bili-notice-hoshino.bili_notice_hoshino", error: call_action() takes 2 positional arguments but 3 were given [2024-06-25 16:09:41,105 nonebot] ERROR: call_action() takes 2 positional arguments but 3 were given Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin.py", line 249, in load_plugin module = importlib.import_module(module_path) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\importlib_init_.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "C:\Users\Administrator\Desktop\Mirai-yoshinoV2\xcwbot\HoshinoBot\hoshino\modules\bili-notice-hoshino\bili_notice_hoshino.py", line 65, in async def startup(): TypeError: call_action() takes 2 positional arguments but 3 were given

应该是和Python版本有关,按照https://github.com/kushidou/bili-notice-hoshino/issues/29 中操作能够成功加载插件,但是无法关注新账号,问问在不更改Python版本的情况下有无解决方案

DaiShengSheng avatar Jun 25 '24 08:06 DaiShengSheng