Skip to main content

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

Hey I got this error upon running `main.py`

```py

Traceback (most recent call last):

  File "/home/axis/Downloads/PoweredByPlanets/main.py", line 203, in <module>

    pygame.display.set_icon(pygame.image.load(dirPath+"/SpaceshipOn.png"))

                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

FileNotFoundError: No such file or directory: '/home/axis/downloads/poweredbyplanets/SpaceshipOn.png'.

```

I tried solving it by removing `.lower()` to your `dirPath`, but then I got this

```py

Error of failed request:  BadLength (poly request too large or internal Xlib length error)

  Major opcode of failed request:  0 ()

  Serial number of failed request:  249

  Current serial number in output stream:  249

```


Am on Arch

(2 edits) (+1)

I figured out how to make it run on Linux, there are three small changes to the original source code. First, as you already found you have to remove the .lower(), on line 21. Next, to fix the second bug you have, comment out the entirety of line 203 to avoid setting the icon, which seems to be causing it. And finally, capitalize the L on the loading on line 207. 

It works!!