Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Py to Exe error #283

Open
ghost opened this issue Feb 18, 2022 · 0 comments
Open

Auto Py to Exe error #283

ghost opened this issue Feb 18, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 18, 2022

Hi

When converting my pygame zero game to a EXE file for windows using Auto Py to Exe https://pypi.org/project/auto-py-to-exe/
I get the following error trying to run my EXE (I don't have this error when converting a pygame game (not using pygame zero) to EXE using exactly the same way):

Traceback (most recent call last):
File "tigerheli.py", line 2, 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\pyimod03_importers.py", line 495, in exec_module
File "pgzrun.py", line 23, in
File "pgzero\runner.py", line 106, in prepare_mod
File "pgzero\game.py", line 92, in show_default_icon
File "pkgutil.py", line 639, in get_data
File "PyInstaller\loader\pyimod03_importers.py", line 344, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\GEBRUI~1\AppData\Local\Temp\_MEI183602\pgzero\data\icon.png'

afbeelding

What to do to solve this?
I don't know what the file icon.png is and I also don't use this in my code.

Attached is the source of my game and all needed images/sounds

tigerheli.zip

thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants