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

0.7.12头像获取异常 #147

Open
LeoWrDeom opened this issue Feb 13, 2025 · 1 comment
Open

0.7.12头像获取异常 #147

LeoWrDeom opened this issue Feb 13, 2025 · 1 comment

Comments

@LeoWrDeom
Copy link

LeoWrDeom commented Feb 13, 2025

有个群友的头像0.7.10版本可以正常制作表情包
0.7.12就变成获取到企鹅的表情了
我自己测试回退0.7.10就正常了,升级到0.7.12就无法正常获取,不知是什么原因

Image
如上
复现方式:
0.7.12使用 rua @低分辨率头像QQ 或者任意使用头像制作的表情包,获取的图片会变成上述图片

依赖版本:
napcat 4.2.32
nonebot2 2.4.1
httpx 0.27.2

@LeoWrDeom
Copy link
Author

更新meme-generator v0.1.11后心奈说不带参数报错

02-13 21:43:55 [ERROR] nonebot | Running AlconnaMatcher(type='', module=nonebot_plugin_memes.matchers.command, lineno=176) failed.
Traceback (most recent call last):
  File "G:\BOT\TaskPush\bot.py", line 46, in <module>
    nonebot.run(app="__mp_main__:app")
  File "G:\BOT\TaskPush\.venv\lib\site-packages\nonebot\__init__.py", line 337, in run
    get_driver().run(*args, **kwargs)
  File "G:\BOT\TaskPush\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 187, in run
    uvicorn.run(
  File "G:\BOT\TaskPush\.venv\lib\site-packages\uvicorn\main.py", line 579, in run
    server.run()
  File "G:\BOT\TaskPush\.venv\lib\site-packages\uvicorn\server.py", line 65, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 636, in run_until_complete
    self.run_forever()
  File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 603, in run_forever
    self._run_once()
  File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1909, in _run_once
    handle._run()
  File "C:\Users\Leo\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "G:\BOT\TaskPush\.venv\lib\site-packages\nonebot\utils.py", line 254, in run_coro_with_shield
    return await coro
  File "G:\BOT\TaskPush\.venv\lib\site-packages\nonebot\message.py", line 506, in check_and_run_matcher
    await _run_matcher(
> File "G:\BOT\TaskPush\.venv\lib\site-packages\nonebot\message.py", line 458, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "G:\BOT\TaskPush\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 926, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "G:\BOT\TaskPush\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 863, in simple_run
    await handler(
  File "G:\BOT\TaskPush\.venv\lib\site-packages\nonebot\dependencies\__init__.py", line 113, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "G:\BOT\TaskPush\.venv\lib\site-packages\nonebot_plugin_memes\matchers\command.py", line 280, in _
    await process(
  File "G:\BOT\TaskPush\.venv\lib\site-packages\nonebot_plugin_memes\matchers\command.py", line 77, in process
    result = await run_sync(meme)(images=image_contents, texts=texts, args=args)
  File "G:\BOT\TaskPush\.venv\lib\site-packages\nonebot\utils.py", line 183, in _wrapper
    return await anyio.to_thread.run_sync(
  File "G:\BOT\TaskPush\.venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "G:\BOT\TaskPush\.venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2461, in run_sync_in_worker_thread
    return await future
  File "G:\BOT\TaskPush\.venv\lib\site-packages\anyio\_backends\_asyncio.py", line 962, in run
    result = context.run(func, *args)
  File "G:\BOT\TaskPush\.venv\lib\site-packages\meme_generator\meme.py", line 146, in __call__
    return self.function(imgs, texts, model)
  File "G:\BOT\TaskPush\.venv\lib\site-packages\meme_generator\memes\ba_say\__init__.py", line 85, in ba_say
    text = texts[0]
IndexError: list index out of range

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