Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法运行“出关”和“我的状态”等指令 #149

Open
LuciferElizabeth opened this issue May 28, 2023 · 0 comments
Open

无法运行“出关”和“我的状态”等指令 #149

LuciferElizabeth opened this issue May 28, 2023 · 0 comments

Comments

@LuciferElizabeth
Copy link

求助大佬们,插件导入后大部分功能都可以正常使用,但是涉及到出关等等这些在nonebot_plugin_xiuxian.xiuxian_buff的指令无法运行,显示加载错误。

05-28 15:03:39 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_xiuxian.xiuxian_buff) failed.
Traceback (most recent call last):
  File "D:\claude-bot\Alice\bot.py", line 42, in <module>
    nonebot.run(app="__mp_main__:app")
  File "D:\claude-bot\Alice\.venv\lib\site-packages\nonebot\__init__.py", line 309, in run
    get_driver().run(*args, **kwargs)
  File "D:\claude-bot\Alice\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 198, in run
    uvicorn.run(
  File "D:\claude-bot\Alice\.venv\lib\site-packages\uvicorn\main.py", line 578, in run
    server.run()
  File "D:\claude-bot\Alice\.venv\lib\site-packages\uvicorn\server.py", line 61, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "C:\Users\acer\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\acer\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 634, in run_until_complete
    self.run_forever()
  File "C:\Users\acer\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Users\acer\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 601, in run_forever
    self._run_once()
  File "C:\Users\acer\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1905, in _run_once
    handle._run()
  File "C:\Users\acer\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "D:\claude-bot\Alice\.venv\lib\site-packages\nonebot\message.py", line 141, in _check_matcher
    await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
> File "D:\claude-bot\Alice\.venv\lib\site-packages\nonebot\message.py", line 187, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "D:\claude-bot\Alice\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 753, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "D:\claude-bot\Alice\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 728, in simple_run
    await handler(
  File "D:\claude-bot\Alice\.venv\lib\site-packages\nonebot\dependencies\__init__.py", line 108, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "D:\claude-bot\Alice\.venv\lib\site-packages\nonebot_plugin_xiuxian\xiuxian_buff\__init__.py", line 355, in _
    user_buff_data = UserBuffDate(user_id)
  File "D:\claude-bot\Alice\.venv\lib\site-packages\nonebot_plugin_xiuxian\read_buff.py", line 52, in __init__
    self.BuffInfo = get_user_buff(self.user_id)
  File "D:\claude-bot\Alice\.venv\lib\site-packages\nonebot_plugin_xiuxian\read_buff.py", line 130, in get_user_buff
    BuffInfo = XiuxianDateManage().get_user_buff_info(user_id)
  File "D:\claude-bot\Alice\.venv\lib\site-packages\nonebot_plugin_xiuxian\xiuxian2_handle.py", line 912, in get_user_buff_info
    return BuffInfo(*result)
TypeError: <lambda>() takes 10 positional arguments but 11 were given
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant