FileNotFoundError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_25676/1624990664.py in 1 for item in all_images: 2 ----> 3 im1 = Image.open(f'./layers/backgrounds/{background_files[item["Background"]]}.jpg').convert('RGBA') 4 im2 = Image.open(f'./layers/circles/{circle_files[item["Circle"]]}.png').convert('RGBA') 5 im3 = Image.open(f'./layers/squares/{square_files[item["Square"]]}.png').convert('RGBA')
~\AppData\Roaming\Python\Python39\site-packages\PIL\Image.py in open(fp, mode, formats) 2966 2967 if filename: -> 2968 fp = builtins.open(filename, "rb") 2969 exclusive_fp = True 2970
FileNotFoundError: [Errno 2] No such file or directory: './layers/backgrounds/orange.jpg'
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
FileNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_25676/1624990664.py in
1 for item in all_images:
2
----> 3 im1 = Image.open(f'./layers/backgrounds/{background_files[item["Background"]]}.jpg').convert('RGBA')
4 im2 = Image.open(f'./layers/circles/{circle_files[item["Circle"]]}.png').convert('RGBA')
5 im3 = Image.open(f'./layers/squares/{square_files[item["Square"]]}.png').convert('RGBA')
~\AppData\Roaming\Python\Python39\site-packages\PIL\Image.py in open(fp, mode, formats)
2966
2967 if filename:
-> 2968 fp = builtins.open(filename, "rb")
2969 exclusive_fp = True
2970
FileNotFoundError: [Errno 2] No such file or directory: './layers/backgrounds/orange.jpg'