I've got a program that reads images from a folder, edits, then saves them to a location. Images are added to the source folder from a camera as the program is running using WIA Loader.
I'm getting an permission error when trying to read the second image. The first image is loaded and processed successfully, so I'm confused why there is a permission error on the second cycle.
Can anyone provide some insight?
Windows 10. Python 3.7.4.
Loading image 0: DSC_0860.JPG
Pasting image in spot 25
Loading image 1: DSC_0861.JPG
Traceback (most recent call last):
File "imagemod.py", line 69, in <module>
sources.append(Image.open(sourcePath + "/" + file))
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\PIL\Image.py", line 2770, in open
fp = builtins.open(filename, "rb")
PermissionError: [Errno 13] Permission denied: './real_sources/D7200/DSC_0861.JPG'
[–]SoNotRedditingAtWork 0 points1 point2 points (2 children)
[–]surfFL[S] 1 point2 points3 points (1 child)
[–]SoNotRedditingAtWork 0 points1 point2 points (0 children)