0

Program works fine in other Windows and Raspberry Pi (debian?) using pygame 1.? Using Python 3.8 and pygame 2.0.1 Statement is:

pygame.image.save(window, fnm)

where fnm is fnm = "Pic" + str(int(rs1)) +".png" eg Pic240.png

Response is : pygame.error: Couldn't open Pic240.png

Presumably the problem is in pygame 2 Can I use pygame 1 in python 3.8?

  • 2
    Presumably Pygame 2 isn't the problem. What's the working directory for your program? Do you have permission to write files in that directory? – AKX Mar 26 '21 at 14:12
  • Yes - well spotted. For some reason the new installation of Python3 had denied all permissions, so I couldn't even save to my own script directory. Now sorted – pearcecg Mar 28 '21 at 10:19

0 Answers0