Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Convert app to exe #211

Unanswered
Jeanpierrre asked this question in Q&A
Discussion options

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
image

I have tried everything, even with virtual environments but I get the same error.

I hope you can help me, thank you very much!!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /