Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey there !

I wanted to try your game but sadly starting it threw some errors

 File "main.py", line 10, in <module>

  File "<frozen importlib._bootstrap>", line 983, in _find_and_load

  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked

  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module

  File "scripts\boss.py", line 21, in <module>

    boss_img = load_img('imgs/nerd.png')

  File "scripts\boss.py", line 17, in load_img

    img = pygame.image.load(path).convert()

FileNotFoundError: No file 'imgs/nerd.png' found in working directory 'C:\WINDOWS\System32'.

I tried to adjust the filepath, but since I haven't worked yet with pygame, I don't know if the working directory is set by the framework.

If you have a quick fix for it I'll check it out.

(1 edit)

Hi, for a quick fix, Try to install the python 3.10 and make sure to add it to path when installing. And i'm sorry for the errors, this is my first time compiling to exe