cpuopt / nonebot_plugin_imgexploration

Google、Yandx和基于PicImageSearch的saucenao、ascii2d搜图
MIT License
30 stars 0 forks source link

ubuntu server安装字体后报错 #11

Closed canxin121 closed 1 year ago

canxin121 commented 1 year ago

File "/nb/cxbot/.venv/lib/python3.10/site-packages/PIL/ImageFont.py", line 255, in init self.font = core.getfont( OSError: cannot open resource

报错详情 image

下面是字体安装情况 image image

cpuopt commented 1 year ago

fc-cache -f -v 或重启机器

cpuopt commented 1 year ago

或者是当前用户没有字体文件的读权限

canxin121 commented 1 year ago

都试了,还是同样报错,emmm