1

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
  • 19,323
  • 15
  • 83
  • 135
user3488446
  • 11
  • 1
  • 2

2 Answers2

0

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

Nilesh
  • 19,323
  • 15
  • 83
  • 135
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
  • 738
  • 9
  • 19