Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I got a error message while execute xmlparse.py and I've stuck here.
It's probably because the import path for the font is different on your computer. Also, you gotta make sure that thing is downloaded. If all else fails, just delete any code that references font and the cards should print with the default font; it'll be ugly but it's just for testing so it's ok.…
On Wed, Jan 1, 2020 at 2:49 AM zyjeng11 ***@***.***> wrote: I got a error message while execute xmlparse.py and I've stuck here. Traceback (most recent call last): File "xmlparse.py", line 1, in from card import Card, filize File "D:\python\cardizer-master\card.py", line 10, in rulesF = ImageFont.truetype('fonts/source-code-pro/SourceCodePro-Medium.otf', RULES_FONT_SIZE) File "D:\program\python\lib\site-packages\PIL\ImageFont.py", line 640, in truetype return freetype(font) File "D:\program\python\lib\site-packages\PIL\ImageFont.py", line 637, in freetype return FreeTypeFont(font, size, index, encoding, layout_engine) File "D:\program\python\lib\site-packages\PIL\ImageFont.py", line 186, in *init* font, size, index, encoding, layout_engine=layout_engine OSError: cannot open resource — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#2?email_source=notifications&email_token=AKV5AKM3ODAC5AUAPNTXZPLQ3RDKJA5CNFSM4J6KGPX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH4755Q#issuecomment-570031862>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKV5AKLQZKKCB64XIJ2KOHTQ3RDKJANCNFSM4J6KGPXQ> .