成功解决OSError: cannot open resource self.font = core.getfont(font, size, index, encoding, layout_engin

简介: 成功解决OSError: cannot open resource self.font = core.getfont(font, size, index, encoding, layout_engin

解决问题


self.font = core.getfont(font, size, index, encoding, layout_engine=layout_engine)

OSError: cannot open resource



解决思路


OSError:无法打开资源


解决方法


文件或者文件路径有错误!




参考文章

成功解决OSError: cannot open resource File "F:Python36\lib\site-packages\PIL\ImageFont.py", self.font

https://yunyaniu.blog.csdn.net/article/details/89814106

相关文章
|
3月前
|
Docker 容器
ADD failed: file not found in build context or excluded by .dockerignore: stat irap_rule_center: fil
ADD failed: file not found in build context or excluded by .dockerignore: stat irap_rule_center: fil
|
5月前
|
XML 移动开发 Unix
open(file, mode=‘r‘, buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=No
open(file, mode=‘r‘, buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=No
Limits: MIN_INFLATE_RATIO: 0.010000, Entry: word/media/image5.png
Limits: MIN_INFLATE_RATIO: 0.010000, Entry: word/media/image5.png
263 0
|
7月前
|
XML Android开发 数据格式
Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class
Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class
70 0
|
7月前
|
XML 数据格式
android.view.InflateException: Binary XML file line #0: Attempt to invoke virtual
android.view.InflateException: Binary XML file line #0: Attempt to invoke virtual
35 0
|
前端开发
display:contents
display:contents
59 1
|
存储 缓存 应用服务中间件
解决问题:net::ERR_CONTENT_LENGTH_MISMATCH 206 (Partial Content)
问题 今天遇到一个问题,Web 播放器在播放对象存储服务中的某个视频文件时,总是不断的报错 206(Partial Content),具体的信息如下: net::ERR_CONTENT_LENGTH_MISMATCH 206 (Partial Content) 造成的结果就是视频播放失败。 播放器报错截图如下:
1584 0
解决问题:net::ERR_CONTENT_LENGTH_MISMATCH 206 (Partial Content)
Data Security Is Now More Important Than Ever
In this whitepaper, we will explore current trends in cybercrime, China’s data protection landscape and measures data center operators can take to secure businesses‘ cloud-based data storage.
1433 0