noneplugin / nonebot-plugin-memes

Nonebot2 表情包制作插件
MIT License
216 stars 19 forks source link

【报错】关于某些表情 #100

Closed Momoi-coder closed 1 day ago

Momoi-coder commented 1 month ago

/摸 某个QQ保存的表情包就报错 06-10 23:35:45 [WARNING] nonebot_plugin_memes | Traceback (most recent call last): File "C:\Users\18280\AppData\Local\Programs\Python\Python310\lib\site-packages\meme_generator\meme.py", line 133, in call imgs.append(BuildImage.open(image)) # type: ignore File "C:\Users\18280\AppData\Local\Programs\Python\Python310\lib\site-packages\pil_utils\build_image.py", line 66, in open return cls(Image.open(file)) File "C:\Users\18280\AppData\Local\Programs\Python\Python310\lib\site-packages\PIL\Image.py", line 3298, in open raise UnidentifiedImageError(msg) PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x000002B76519DCB0>

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\18280\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_memes__init__.py", line 266, in process result = await meme(images=images, texts=texts, args=args) File "C:\Users\18280\AppData\Local\Programs\Python\Python310\lib\site-packages\meme_generator\meme.py", line 135, in call raise OpenImageFailed(str(e)) meme_generator.exception.OpenImageFailed: Error in meme_generator: Error opening images: "cannot identify image file <_io.BytesIO object at 0x000002B76519DCB0>"

MeetWq commented 1 day ago

这应该是从QQ下载图片的时候下载出错,大概率是你用的机器人协议端的问题

这边先close了,如果还有问题或能稳定复现可以reopen