You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
11-10 10:51:27 [ERROR] nonebot | Running Matcher(type='message', module=LittlePaimon.plugins.plugin_manager, lineno=34) failed.
Traceback (most recent call last):
File "C:\Users\lulu\Desktop\robot\LittlePaimon2\bot.py", line 37, in
nonebot.run(app="mp_main:app", access_log=False)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot_init_.py", line 331, in run
get_driver().run(*args, **kwargs)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\drivers\fastapi.py", line 201, in run
uvicorn.run(
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\main.py", line 587, in run
server.run()
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 640, in run_until_complete
self.run_forever()
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 607, in run_forever
self._run_once()
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1922, in _run_once
handle._run()
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\message.py", line 428, in run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 846, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 821, in simple_ru
n
await handler(
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\dependencies_init.py", line 113, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\Users\lulu\Desktop\robot\LittlePaimon2\LittlePaimon\plugins\plugin_manager_init_.py", line 157, in _
img = await draw_help(plugin_list)
File "C:\Users\lulu\Desktop\robot\LittlePaimon2\LittlePaimon\plugins\plugin_manager\draw_help.py", line 66, in draw_help
await img.text_box(matcher.pm_description.replace('\n', '^'), (40 + 336 * matcher_group.index(matcher) + 10, 40 + 336 * matcher_group.in
dex(matcher) + matcher_card.width - 22),
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\utils.py", line 131, in _wrapper
result = await loop.run_in_executor(None, partial(context.run, pfunc))
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\lulu\Desktop\robot\LittlePaimon2\LittlePaimon\utils\image.py", line 220, in text_box
text_height = self.draw.textsize(text, font=font)[1]
AttributeError: 'ImageDraw' object has no attribute 'textsize'
复现步骤[可选]
help指令
The text was updated successfully, but these errors were encountered:
确认
nb paimon install
更新依赖库环境信息
问题描述
help无法绘制
问题截图
11-10 10:51:27 [ERROR] nonebot | Running Matcher(type='message', module=LittlePaimon.plugins.plugin_manager, lineno=34) failed.
Traceback (most recent call last):
File "C:\Users\lulu\Desktop\robot\LittlePaimon2\bot.py", line 37, in
nonebot.run(app="mp_main:app", access_log=False)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot_init_.py", line 331, in run
get_driver().run(*args, **kwargs)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\drivers\fastapi.py", line 201, in run
uvicorn.run(
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\main.py", line 587, in run
server.run()
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\uvicorn\server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 640, in run_until_complete
self.run_forever()
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 607, in run_forever
self._run_once()
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1922, in _run_once
handle._run()
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\lulu\AppData\Local\Programs\Python\Python311\Lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(
复现步骤[可选]
help指令
The text was updated successfully, but these errors were encountered: