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

Pyinstaller doesnt work with pygame zero (please help im in a game jam) #297

Open
astrogames06 opened this issue Jul 18, 2022 · 0 comments

Comments

@astrogames06
Copy link

please help when i use pyinstaller i convert without any problems but when i run it i get this error

Traceback (most recent call last):
  File "game.py", line 1, in <module>
    import pgzrun
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
  File "pgzrun.py", line 23, in <module>
  File "pgzero\runner.py", line 106, in prepare_mod   
  File "pgzero\game.py", line 92, in show_default_icon
  File "pkgutil.py", line 638, in get_data
  File "PyInstaller\loader\pyimod03_importers.py", line 344, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\jebba\\AppData\\Local\\Temp\\_MEI78562\\pgzero\\data\\icon.png'
[18108] Failed to execute script 'game' due to unhandled exception!
@astrogames06 astrogames06 changed the title Pyinstaller doesnt work (please help im in a game jam) Pyinstaller doesnt work with pygame zero (please help im in a game jam) Jul 18, 2022
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

1 participant