yzyyz1387 / nonebot_plugin_code

nonebot2在线运行代码
MIT License
65 stars 7 forks source link

报错 #6

Closed QwindF closed 1 year ago

QwindF commented 1 year ago
'.code py\r\nprint("test")'
06-03 22:03:08 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_groupmanager.img_check)
06-03 22:03:08 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_groupmanager.img_check) running complete
06-03 22:03:09 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_code)
06-03 22:03:09 [ERROR] nonebot | Error when running RunPreProcessors. Running cancelled!
Traceback (most recent call last):
  File "E:\IDEAyes\BOT\nonebot2\bot.py", line 60, in <module>
    nonebot.run(app="__mp_main__:app")
  File "E:\IDEAyes\BOT\nonebot2\venv\lib\site-packages\nonebot\__init__.py", line 309, in run
    get_driver().run(*args, **kwargs)
  File "E:\IDEAyes\BOT\nonebot2\venv\lib\site-packages\nonebot\drivers\fastapi.py", line 198, in run
    uvicorn.run(
  File "E:\IDEAyes\BOT\nonebot2\venv\lib\site-packages\uvicorn\main.py", line 569, in run
    server.run()
  File "E:\IDEAyes\BOT\nonebot2\venv\lib\site-packages\uvicorn\server.py", line 60, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 633, in run_until_complete
    self.run_forever()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 600, in run_forever
    self._run_once()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1896, in _run_once
    handle._run()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "E:\IDEAyes\BOT\nonebot2\venv\lib\site-packages\nonebot\message.py", line 141, in _check_matcher
    await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
> File "E:\IDEAyes\BOT\nonebot2\venv\lib\site-packages\nonebot\message.py", line 172, in _run_matcher
    await asyncio.gather(*coros)
  File "E:\IDEAyes\BOT\nonebot2\venv\lib\site-packages\nonebot\utils.py", line 158, in run_coro_with_catch
    return await coro
  File "E:\IDEAyes\BOT\nonebot2\venv\lib\site-packages\nonebot\dependencies\__init__.py", line 108, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "E:\IDEAyes\BOT\nonebot2\venv\lib\site-packages\nonebot_plugin_groupmanager\func_hook.py", line 31, in _
    if module[1] != 'nonebot_plugin_admin': return
IndexError: list index out of range
06-03 22:03:09 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_groupmanager.word_analyze)
06-03 22:03:09 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_groupmanager.word_analyze) running complete

image