Image.open no such file or directory #7196
-
I have been working with some starter code and have run into a snag. I am using Image.open() to import one of the example images (cat.jpg in this case). Instead I get FileNotFoundError: [Errno 2] No such file or directory: 'cat.jpg' I dug into a different example I found online, and theirs gave a path to the image: Image.open('data/src/lena.jpg'). Running that gives the same error. In this case, yes, I found src (https://github.com/python-pillow/Pillow/tree/main/src), but that doesn't contain any images. I did find some in https://github.com/python-pillow/Pillow/blob/main/Tests/images/. Is this the new path we should be using? EDIT: trying Image.open("Tests/images/hopper.jpg") gives the same error. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Resolved in an Issues post. |
Beta Was this translation helpful? Give feedback.
For future reference: #7197