Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

查询b50报错 #42

Open
singledog65 opened this issue Aug 17, 2023 · 1 comment
Open

查询b50报错 #42

singledog65 opened this issue Aug 17, 2023 · 1 comment

Comments

@singledog65
Copy link

目前只有查询b50的时候报了这个错
File "D:\maimaiBOT\mai-bot-main\mai-bot-main\src\plugins\maimaidx.py", line 300, in _
img, success = await generate50(payload)
File "D:\maimaiBOT\mai-bot-main\mai-bot-main\src\libraries\maimai_best_50.py", line 407, in generate50
pic = DrawBest(sd_best, dx_best, obj["nickname"]).getDir()
File "D:\maimaiBOT\mai-bot-main\mai-bot-main\src\libraries\maimai_best_50.py", line 112, in init
self.draw()
File "D:\maimaiBOT\mai-bot-main\mai-bot-main\src\libraries\maimai_best_50.py", line 327, in draw
playCountInfoW, playCountInfoH = shougouDraw.textsize(playCountInfo, font2)
AttributeError: 'ImageDraw' object has no attribute 'textsize'

@SEVEN-6174
Copy link

pillow库版本过高,换成旧版本(9.4)就好了,新版本删了东西

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants