2

I am new to Python & I'm doing a project in which I have to print so many pictures.But when I run the program I'm getting the following error,

 IOError: [Errno 2] No such file or directory: 'bg8.png'

I'm sure that the filename is correct and I have all the pictures including 'bg8.png'in my python folder.

Nilesh
  • 20,521
  • 16
  • 92
  • 148
user3488446
  • 21
  • 1
  • 2

2 Answers2

0

You might have no permission to that file. Please check path and permission of bg8.png

Nilesh
  • 20,521
  • 16
  • 92
  • 148
0

You need PIL library to allow/show png/jpeg based pictures. try this

also try os.chdir(directory) and `pic = open("name.png)

Community
  • 1
  • 1
Cugomastik
  • 911
  • 13
  • 22