Closed Bacchusyun closed 1 year ago
E:\MomoTranslator-main>python pyqt5_momotranslator.py 2023-10-23 13:35:35.650 | DEBUG | main:AppConfig:2574 - 当前用户配置文件名为:MomoTranslator_AMD64_16GB_config.yml 2023-10-23 13:35:35.785 | DEBUG | main::8997 - msyh_font_ttc='C:/Windows/Fonts/msyh.ttc' Traceback (most recent call last): File "E:\MomoTranslator-main\pyqt5_momotranslator.py", line 8998, in msyh_font20 = ImageFont.truetype(msyh_font_ttc.as_posix(), 20) AttributeError: 'str' object has no attribute 'as_posix'
fixed in https://github.com/alicewish/MomoTranslator/commit/8703794b2f77de8042b804c1d0a293301ef9f919
E:\MomoTranslator-main>python pyqt5_momotranslator.py 2023-10-23 13:35:35.650 | DEBUG | main:AppConfig:2574 - 当前用户配置文件名为:MomoTranslator_AMD64_16GB_config.yml 2023-10-23 13:35:35.785 | DEBUG | main::8997 - msyh_font_ttc='C:/Windows/Fonts/msyh.ttc'
Traceback (most recent call last):
File "E:\MomoTranslator-main\pyqt5_momotranslator.py", line 8998, in
msyh_font20 = ImageFont.truetype(msyh_font_ttc.as_posix(), 20)
AttributeError: 'str' object has no attribute 'as_posix'