02-14 22:40:45 [ERROR] nonebot | Running Matcher(type='message', module=LittlePaimon.plugins.bot_manager) failed.
Traceback (most recent call last):
File "D:\NoneBot-LittlePaimo\bot.py", line 37, in
nonebot.run(app="mp_main__:app", access_log=False)
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\nonebot\init__.py", line 273, in run
get_driver().run(*args, *kwargs)
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 172, in run
uvicorn.run(
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\uvicorn\main.py", line 569, in run
server.run()
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Program Files\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 636, in run_until_complete
self.run_forever()
File "C:\Program Files\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 603, in run_forever
self._run_once()
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 1906, in _run_once
handle._run()
File "C:\Program Files\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, self._args)
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\nonebot\message.py", line 142, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\nonebot\message.py", line 188, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 727, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 702, in simple_run
await handler(
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\nonebot\dependencies__init.py", line 108, in call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "D:\NoneBot-LittlePaimo\LittlePaimon\plugins\botmanager__init__.py", line 141, in
await get_app().router.shutdown()
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\starlette\routing.py", line 658, in shutdown
await handler()
TypeError: Chatbot.playwright_close() missing 1 required positional argument: 'self'
重启指令运行后出现错误并不会让bot停止工作 而是终止了重启指令 不管是nb paimon run还是poetry run nb run都会这样
02-14 22:40:45 [ERROR] nonebot | Running Matcher(type='message', module=LittlePaimon.plugins.bot_manager) failed. Traceback (most recent call last): File "D:\NoneBot-LittlePaimo\bot.py", line 37, in
nonebot.run(app="mp_main__:app", access_log=False)
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\nonebot\init__.py", line 273, in run
get_driver().run(*args, *kwargs)
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 172, in run
uvicorn.run(
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\uvicorn\main.py", line 569, in run
server.run()
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Program Files\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 636, in run_until_complete
self.run_forever()
File "C:\Program Files\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 603, in run_forever
self._run_once()
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 1906, in _run_once
handle._run()
File "C:\Program Files\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, self._args)
File "D:\NoneBot-LittlePaimo.venv\lib\site-packages\nonebot\message.py", line 142, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)