'Pygame Module' not working

Michael F. Stemper michael.stemper at gmail.com
Sat Jul 31 15:48:37 EDT 2021


On 31/07/2021 03.37, 37_VA_VEER CHAKRABORTY wrote:
> Hi,
> I am a beginner in Python and I have started with the 'Pygame' module. I
> was making a 'Flappy Bird' game with the module with the help of Youtube
> videos. I was able to create a blank window. I had downloaded the game
> assets in my computer in a folder called 'Python' and in a subfolder called
> 'assets'. I tried to upload the Flappy Bird picture and other sprites with
> the code -
> pygame.image.load('assets/Flappy Bird.png')
> However, when I ran the script it was showing an error message - File not
> found

Are you running your program in the parent directory of "assets"?

What happens when you go into the python interpreter (REPL) and import
pygame followed by executing that function?


-- 
Michael F. Stemper
Why doesn't anybody care about apathy?


More information about the Python-list mailing list