Convert app to exe #211
Unanswered
Jeanpierrre
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I hope you are well.
I have an app made in tkinter that uses the library (import layoutparser as lp), I am trying to convert it from .py to .exe. However, when I generate the .exe and try to open it I get the following error message.
Traceback (most recent call last):

File "main - copia.py", line 1, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "layoutparser_init.py", line 9, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "layoutparser\visualization.py", line 22, in
File "PIL\ImageFont.py", line 807, in truetype
File "PIL\ImageFont.py", line 804, in freetype
File "PIL\ImageFont.py", line 244, in init
OSError: cannot open resource
I have tried everything, even with virtual environments but I get the same error.
I hope you can help me, thank you very much!!
Beta Was this translation helpful? Give feedback.
All reactions