Python Forum
[PyGame] Error: Couldn't open image
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Error: Couldn't open image
#2
Check to make sure that you have a folder called "imgs", not "images" or "img" in the same folder as the main python file your are writing.

The code looks like it works, but the file it is looking for isn't where it is looking. See perhaps if the files you downloaded are still in a folder, inside the "imgs" folder.

The error is something like this. It looks like your code matches his, so it is most likely a simple error/typo in how you named or located things.
Reply


Messages In This Thread
Error: Couldn't open image - by DotGuy - May-18-2020, 03:49 PM
RE: Error: Couldn't open image - by michael1789 - May-18-2020, 05:44 PM
RE: Error: Couldn't open image - by DotGuy - May-18-2020, 06:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  open cv ->pygame: turn image into location Gamedeveloper 1 2,104 Jan-20-2020, 05:00 PM
Last Post: michael1789
  [PyGame] pygame image loading error BlueClaw 6 6,486 Dec-10-2019, 08:50 PM
Last Post: BlueClaw
  [PyGame] Image not found error simiugor 8 8,919 Dec-02-2016, 06:17 PM
Last Post: simiugor

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020