Python error pygame error Couldn t open pygame png

0 votes

I'm trying to build a game using pygame as a college project but I'm stuck with the following error:

pygame.error: Couldn't open pygame.png
Jun 18, 2019 in Python by Harsha
776 views

2 answers to this question.

0 votes
same here. trying a lot. pls reply if any ans.
answered Aug 25, 2020 by anonymous

Hi, @There,

Kindly go through this: https://www.edureka.co/community/49552/python-error-pygame-error-couldn-t-open-pygame-png

I hope the solutions mentioned in the above link will help you out with your query.

0 votes
add import os at top of your code

it may help (mostly)
answered Sep 25, 2020 by anonymous

Related Questions In Python

+1 vote
1 answer

Python error "pygame.error: Couldn't open pygame.png"

icon = pygame.image.load('spaceship.png') pygame.error: Couldn't open spaceship.png I am ...READ MORE

answered Apr 9, 2020 in Python by Ali
6,906 views
0 votes
1 answer

Python pygame error : Failed loading libpng.dylib: dlopen(libpng.dylib, 2): image not found

Try installing libpng You can do it with ...READ MORE

answered May 31, 2019 in Python by SDeb
• 13,270 points
771 views
0 votes
1 answer

Python error "ImportError: No module named pygame.locals"

You need to download and install the ...READ MORE

answered Jun 18, 2019 in Python by Greg
3,573 views
0 votes
1 answer

Python error "ValueError: size needs to be (int width, int height)" while using pygame.Surface

pygame.Surface takes in integer values for building ...READ MORE

answered Jun 19, 2019 in Python by Varsha
1,427 views
+2 votes
2 answers

Error while printing hello world in python.

You must be trying this command in ...READ MORE

answered Mar 31, 2018 in Python by GandalfDwhite
• 1,320 points
1,226 views
0 votes
1 answer

Create and open a file in Python

file = open('text.txt', 'w+) READ MORE

answered May 24, 2018 in Python by Nietzsche's daemon
• 4,260 points
238 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,059 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,810 points
1,571 views