You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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