成功解决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

相关文章
|
21小时前
|
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
|
2月前
|
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
|
4月前
|
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
48 0
|
4月前
|
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
25 0
|
XML 数据格式
因为CircleImageView导致Binary XML file line #96: Error inflating class <unknown>
因为CircleImageView导致Binary XML file line #96: Error inflating class <unknown>
172 0
cannot open layout editor - how to fix error message
cannot open layout editor - how to fix error message
cannot open layout editor - how to fix error message
open a BP will trigger text load - COM_TEXT_MAINTAIN - READ_TEXT
open a BP will trigger text load - COM_TEXT_MAINTAIN - READ_TEXT
open a BP will trigger text load - COM_TEXT_MAINTAIN - READ_TEXT
通过debug 修改SE16里的table content
通过debug 修改SE16里的table content
149 0
通过debug 修改SE16里的table content
|
Android开发
解决 error: style attribute '@android:attr/windowEnterAnimation' not found.
解决 error: style attribute '@android:attr/windowEnterAnimation' not found.
171 0