mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-26 04:05:49 +03:00
[GH-ISSUE #243] pygame zero exe not working #217
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Feb 19, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/243
Hi
I'm an autistic girl trying to make exe from a pygame zero code.
Is it possible to read here my problem?
I only have this problem with pygame zero games, not with pygame games.
I don't know what to do because I also don't understand this weird error about an icon I don't even use in my code! :-(
https://github.com/lordmauve/pgzero/issues/283
Thx
@brentvollebregt commented on GitHub (Feb 23, 2022):
Is much more helpful when the error is here:
@brentvollebregt commented on GitHub (Feb 23, 2022):
It looks like the application you are bundling is looking for icon.png however it has not been included in the additional data.
Most likely this file.
@ghost commented on GitHub (Feb 23, 2022):
How to solve this in auto-py-to-exe?
Because a pygame game is converted perfectly, but not a pygame zero game.
@brentvollebregt commented on GitHub (Feb 24, 2022):
Check out "FileNotFoundError: [Errno 2] No such file or directory" in the help post I have written - you will need to add the file manually using the "Additional Files" section in the UI. This is not an issue with auto-py-to-exe.
@ghost commented on GitHub (Feb 24, 2022):
Hi
I selected "Additional Files" and then "Add Files" and I have chosen the icon.png
Now the error is changed to this So it has another folder but still can't find the file.
The folder in the error is now the folder where the EXE was written: F:\Visual Studio project\PYTHON\DreamSoft Games\output\tigerheli
pygame 2.1.2 (SDL 2.0.18, Python 3.10.1)
Hello from the pygame community. https://www.pygame.org/contribute.html
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: 'F:\Visual Studio project\PYTHON\DreamSoft Games\output\tigerheli\pgzero\data\icon.png'
[16572] Failed to execute script 'tigerheli' due to unhandled exception!
@brentvollebregt commented on GitHub (Feb 25, 2022):
Have you put the file in the right place? In the help post I supply, I states:
Have you used one-directory mode to check if the file is in the right place?
@ghost commented on GitHub (Feb 25, 2022):
Is it possible to tell me step by step what to do?
I have the file, in what folder do I copy it? Do I have to copy it to a subfolder \pgzero\data ?
What option(s) I have to choise in auto-py-to-exe?
I can't find it, I keep getting error
@brentvollebregt commented on GitHub (Feb 25, 2022):
When adding a file or folder in auto-py-to-exe, there are two boxes to fill out: the source location and the destination.
@github-actions[bot] commented on GitHub (Apr 27, 2022):
This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.
@github-actions[bot] commented on GitHub (May 3, 2022):
Closing issue due to no activity in more than 60 days.