azmiao / uma_plugin

适用【hoshinobot】的【赛马娘QQ机器人插件】功能有: 马娘新闻 | 模拟抽卡 | 信息查询 | 节奏榜 | 相性计算 | 马娘黄历 | 耐力计算 | 马娘表情包 | 马娘一格漫画 | 马娘限时任务 | 马娘技能查询 | 育成目标查询
GNU General Public License v3.0
124 stars 10 forks source link

作者大大我又来啦,第一个错是启动时的,第二个错是找不到节奏榜的那个config #19

Closed GudaTom closed 2 years ago

GudaTom commented 2 years ago

PS C:\HoshinoBot> .\运行.ps1 msgpack not installed, MsgPackSerializer unavailable [2022-05-05 09:17:25,075 config] WARNING: Not found config of "botmanage" [2022-05-05 09:17:25,075 config] INFO: Succeeded to load config of "groupmaster" [2022-05-05 09:17:25,075 config] WARNING: Not found config of "uma_plugin" [2022-05-05 09:17:26,394 nonebot] INFO: Succeeded to import "hoshino.modules.botmanage.alert" [2022-05-05 09:17:26,394 nonebot] INFO: Succeeded to import "hoshino.modules.botmanage.broadcast" [2022-05-05 09:17:26,394 nonebot] INFO: Succeeded to import "hoshino.modules.botmanage.data_cleaner" [2022-05-05 09:17:26,394 nonebot] INFO: Succeeded to import "hoshino.modules.botmanage.get_cqcode" [2022-05-05 09:17:26,394 nonebot] INFO: Succeeded to import "hoshino.modules.botmanage.group_invite" [2022-05-05 09:17:26,394 nonebot] INFO: Succeeded to import "hoshino.modules.botmanage.group_leave" [2022-05-05 09:17:26,425 nonebot] INFO: Succeeded to import "hoshino.modules.botmanage.help" [2022-05-05 09:17:26,425 nonebot] INFO: Succeeded to import "hoshino.modules.botmanage.ls" [2022-05-05 09:17:26,425 nonebot] INFO: Succeeded to import "hoshino.modules.botmanage.service_manage" [2022-05-05 09:17:26,441 nonebot] INFO: Succeeded to import "hoshino.modules.groupmaster.chat" [2022-05-05 09:17:26,441 nonebot] INFO: Succeeded to import "hoshino.modules.groupmaster.group_notice" [2022-05-05 09:17:26,441 nonebot] INFO: Succeeded to import "hoshino.modules.groupmaster.join_approve" [2022-05-05 09:17:26,441 nonebot] INFO: Succeeded to import "hoshino.modules.groupmaster.random_repeater" C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\fuzzywuzzy\fuzz.py:11: UserWarning: Usin g slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning') [2022-05-05 09:17:27,400 hoshino] INFO: ====未检测到马娘漫画信息,正在开始更新==== [2022-05-05 09:17:27,790 nonebot] ERROR: Failed to import "hoshino.modules.uma_plugin.umamusume_news", error: list.remov e(x): x not in list [2022-05-05 09:17:27,790 nonebot] ERROR: list.remove(x): x not in list Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, in load_plugin module = importlib.import_module(module_path) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib__init.py", line 127, in import_mo dule return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "C:\HoshinoBot\hoshino\modules\uma_plugin__init.py", line 75, in loop.run_until_complete(update()) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 616, in run_unti l_complete return future.result() File "C:\HoshinoBot\hoshino\modules\uma_plugin__init.py", line 60, in update await comic_update() File "C:\HoshinoBot\hoshino\modules\uma_plugin\uma_comic\update_init.py", line 12, in update await update_info() File "C:\HoshinoBot\hoshino\modules\uma_plugin\uma_comic\comic.py", line 13, in update_info img_dict = await get_imgurl() File "C:\HoshinoBot\hoshino\modules\uma_plugin\uma_comic\comic.py", line 31, in get_imgurl en_name = await get_en_name(img_name) File "C:\HoshinoBot\hoshino\modules\uma_plugin\uma_comic\comic.py", line 70, in get_en_name name_list.remove('current_chara') ValueError: list.remove(x): x not in list [2022-05-05 09:17:27,806 nonebot] ERROR: Failed to import "hoshino.modules.uma_plugin.uma_almanac", error: Service name "uma_help" already exist! [2022-05-05 09:17:27,806 nonebot] ERROR: Service name "uma_help" already exist! Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, in load_plugin module = importlib.import_module(module_path) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib\init__.py", line 127, in import_mo dule return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "C:\HoshinoBot\hoshino\modules\uma_plugin\init__.py", line 34, in sv = Service('umahelp', help = sv_help) File "C:\HoshinoBot\hoshino\service.py", line 128, in init assert self.name not in _loaded_services, f'Service name "{self.name}" already exist!' AssertionError: Service name "uma_help" already exist! [2022-05-05 09:17:27,806 nonebot] INFO: Succeeded to import "hoshino.modules.uma_plugin.uma_comic" [2022-05-05 09:17:27,806 nonebot] INFO: Succeeded to import "hoshino.modules.uma_plugin.uma_compatibility" [2022-05-05 09:17:27,806 nonebot] ERROR: Failed to import "hoshino.modules.uma_plugin.uma_endurance", error: Service nam e "uma_help" already exist! [2022-05-05 09:17:27,806 nonebot] ERROR: Service name "uma_help" already exist! Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, in load_plugin module = importlib.import_module(module_path) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib__init__.py", line 127, in import_mo dule return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "C:\HoshinoBot\hoshino\modules\uma_plugin__init__.py", line 34, in sv = Service('umahelp', help = sv_help) File "C:\HoshinoBot\hoshino\service.py", line 128, in init__ assert self.name not in _loaded_services, f'Service name "{self.name}" already exist!' AssertionError: Service name "uma_help" already exist! [2022-05-05 09:17:27,806 nonebot] INFO: Succeeded to import "hoshino.modules.uma_plugin.uma_face" [2022-05-05 09:17:27,806 nonebot] INFO: Succeeded to import "hoshino.modules.uma_plugin.uma_gacha" [2022-05-05 09:17:27,806 nonebot] INFO: Succeeded to import "hoshino.modules.uma_plugin.uma_info" [2022-05-05 09:17:27,806 nonebot] INFO: Succeeded to import "hoshino.modules.uma_plugin.uma_skills" [2022-05-05 09:17:27,806 nonebot] INFO: Succeeded to import "hoshino.modules.uma_plugin.uma_support_chart" [2022-05-05 09:17:27,806 nonebot] INFO: Succeeded to import "hoshino.modules.uma_plugin.uma_tasks" [2022-05-05 09:17:27,822 nonebot] INFO: Running on 127.0.0.1:2333

azmiao commented 2 years ago

没有config都是首次启动时没有生成,请检查一下这个目录文件C:\HoshinoBot\hoshino\modules\uma_plugin_init.py,你的日志里有这个东西,但实际不应该有uma_plugin_init.py文件,这个是啥我也不知道,请确保modules文件夹下只有文件夹

GudaTom commented 2 years ago

之前我留了个备份文件夹在那,原来不能放在那里。但是我删了之后还是有个错,要不作者大大帮忙上服务器看一眼,这个错我纠结了1个星期了,一直没弄好2333 有木有qq群啥的,我私聊给你服务器

azmiao commented 2 years ago

之前我留了个备份文件夹在那,原来不能放在那里。但是我删了之后还是有个错,要不作者大大帮忙上服务器看一眼,这个错我纠结了1个星期了,一直没弄好2333 有木有qq群啥的,我私聊给你服务器

别,这容易出事,不放心,你截图发日志

GudaTom commented 2 years ago

PS C:\HoshinoBot> .\运行.ps1 msgpack not installed, MsgPackSerializer unavailable [2022-05-05 10:03:22,420 config] INFO: Succeeded to load config of "groupmaster" [2022-05-05 10:03:22,420 config] WARNING: Not found config of "uma_plugin" [2022-05-05 10:03:22,420 config] WARNING: Not found config of "botmanage" [2022-05-05 10:03:23,407 nonebot] INFO: Succeeded to import "hoshino.modules.groupmaster.chat" [2022-05-05 10:03:23,407 nonebot] INFO: Succeeded to import "hoshino.modules.groupmaster.group_notice" [2022-05-05 10:03:23,407 nonebot] INFO: Succeeded to import "hoshino.modules.groupmaster.join_approve" [2022-05-05 10:03:23,423 nonebot] INFO: Succeeded to import "hoshino.modules.groupmaster.random_repeater" C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\fuzzywuzzy\fuzz.py:11: UserWarning: Usin g slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning') [2022-05-05 10:03:24,222 hoshino] INFO: ====未检测到马娘漫画信息,正在开始更新==== [2022-05-05 10:03:24,597 nonebot] ERROR: Failed to import "hoshino.modules.uma_plugin.umamusume_news", error: list.remov e(x): x not in list [2022-05-05 10:03:24,597 nonebot] ERROR: list.remove(x): x not in list Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, in load_plugin module = importlib.import_module(module_path) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib__init.py", line 127, in import_mo dule return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "C:\HoshinoBot\hoshino\modules\uma_plugin__init.py", line 75, in loop.run_until_complete(update()) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 616, in run_unti l_complete return future.result() File "C:\HoshinoBot\hoshino\modules\uma_plugin__init.py", line 60, in update await comic_update() File "C:\HoshinoBot\hoshino\modules\uma_plugin\uma_comic\update_init.py", line 12, in update await update_info() File "C:\HoshinoBot\hoshino\modules\uma_plugin\uma_comic\comic.py", line 13, in update_info img_dict = await get_imgurl() File "C:\HoshinoBot\hoshino\modules\uma_plugin\uma_comic\comic.py", line 31, in get_imgurl en_name = await get_en_name(img_name) File "C:\HoshinoBot\hoshino\modules\uma_plugin\uma_comic\comic.py", line 70, in get_en_name name_list.remove('current_chara') ValueError: list.remove(x): x not in list [2022-05-05 10:03:24,597 nonebot] ERROR: Failed to import "hoshino.modules.uma_plugin.uma_almanac", error: Service name "uma_help" already exist! [2022-05-05 10:03:24,597 nonebot] ERROR: Service name "uma_help" already exist! Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, in load_plugin module = importlib.import_module(module_path) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib\init__.py", line 127, in import_mo dule return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "C:\HoshinoBot\hoshino\modules\uma_plugin\init__.py", line 34, in sv = Service('umahelp', help = sv_help) File "C:\HoshinoBot\hoshino\service.py", line 128, in init assert self.name not in _loaded_services, f'Service name "{self.name}" already exist!' AssertionError: Service name "uma_help" already exist! [2022-05-05 10:03:24,597 nonebot] INFO: Succeeded to import "hoshino.modules.uma_plugin.uma_comic" [2022-05-05 10:03:24,597 nonebot] INFO: Succeeded to import "hoshino.modules.uma_plugin.uma_compatibility" [2022-05-05 10:03:24,597 nonebot] ERROR: Failed to import "hoshino.modules.uma_plugin.uma_endurance", error: Service nam e "uma_help" already exist! [2022-05-05 10:03:24,597 nonebot] ERROR: Service name "uma_help" already exist! Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\nonebot\plugin.py", line 263, in load_plugin module = importlib.import_module(module_path) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\importlib__init__.py", line 127, in import_mo dule return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 961, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "C:\HoshinoBot\hoshino\modules\uma_plugin__init__.py", line 34, in sv = Service('umahelp', help = sv_help) File "C:\HoshinoBot\hoshino\service.py", line 128, in init__ assert self.name not in _loaded_services, f'Service name "{self.name}" already exist!' AssertionError: Service name "uma_help" already exist!

azmiao commented 2 years ago

Service name "uma_help" already exist!,这是你有服务冲突了,你是不是还有备份的残留着,有一说一,如果你没有其他需要备份的插件的话,建议直接把整个Hoshinobot文件夹删了重新装一下Hoshino

GudaTom commented 2 years ago

是啊,我就是顶不住全部删了,然后去小白教程重新搞了一遍。uma_plugin也是重新git下载下来的。

azmiao commented 2 years ago

你把你的modules文件夹下面所有东西截图一份看看

GudaTom commented 2 years ago

image image image image

GudaTom commented 2 years ago

哦,我知道了,日啊!是之前git的环境变量没配置好的情况下,我跑了一遍然后报错了(上一个issue没看清大佬的回答,环境变量调错了把bin写成了bin\git.exe),调好了之后再也跑不起来了。要把整个HoshinoBot删了重装再跑。

azmiao commented 2 years ago

image image image image

有一说一,挺正常的(,稍等我研究研究

GudaTom commented 2 years ago

image xz现在看起来正常了

azmiao commented 2 years ago

image xz现在看起来正常了

啊这,这样就对了

GudaTom commented 2 years ago

太折磨辣,呜呜呜。这鬼错误恶心了我一周

azmiao commented 2 years ago

我一会把教程里的版本也更新到最新吧,防止再出问题

GudaTom commented 2 years ago

我一会把教程里的版本也更新到最新吧,防止再出问题

辛苦了,作者大大,作者大大最棒了!!!

azmiao commented 2 years ago

哦,大概知道了,上面这些错误应该是第一次更新出错了,但没有出错的文件夹和文件没有删除,导致再次启动的时候无法成功更新,马上修

GudaTom commented 2 years ago

哦,大概知道了,上面这些错误应该是第一次更新出错了,但没有出错的文件夹和文件没有删除,导致再次启动的时候无法成功更新,马上修

对,就是这么个意思,作者大大赛高~!越来越健壮了