k4yt3x / video2x

A lossless video/GIF/image upscaler achieved with waifu2x, Anime4K, SRMD and RealSR. Started in Hack the Valley II, 2018.
https://video2x.org
GNU Affero General Public License v3.0
9.82k stars 955 forks source link

PermissionError: [WinError 5] Access is denied: 'G:\\Temp\\video2x' #321

Closed jekabsmilbrets closed 3 years ago

jekabsmilbrets commented 4 years ago

Component Versions

Symptom

I have been trying to convert folder of videos using anime4k driver(video2x, temp folders and video materials are on the same external hdd with exFat format but 9/10 times I right and 99% stage of video converting i get error that access denied to temp folders -> PermissionError: [WinError 5] Access is denied: 'G:\Temp\video2x'

Same thing happens if I only try to convert one file.

Error Log or Screenshots

video2x_2020-07-27_19-25-31.log

k4yt3x commented 4 years ago

Despite the error, the one file should be upscaled successfully right?

jekabsmilbrets commented 4 years ago

In both ways (select file or select folder) it did not finish upscaling and no output video file was not created.

jekabsmilbrets commented 4 years ago

I have tried multiple external drives and all of them were exFat formatted

VigilantBag commented 4 years ago

Have you checked the permissions of the folder? https://answers.microsoft.com/en-us/windows/forum/windows_7-security/error-5-access-denied-setup-unable-to-create-the/e9e9ad9b-9a81-4a99-962e-3e5f0708a855

jekabsmilbrets commented 4 years ago

Have you checked the permissions of the folder? https://answers.microsoft.com/en-us/windows/forum/windows_7-security/error-5-access-denied-setup-unable-to-create-the/e9e9ad9b-9a81-4a99-962e-3e5f0708a855

I'll try today, but as I know and as google says exfat formatted drives does not have permissions ->

"exFAT, as an extension of FAT, is not capable of storing discretionary access control metadata. This is why all the files on an exFAT volume appear to be 777 permissions. It's basically saying "this volume is wide-open because we can't not make it wide-open due to the file system format"."

zxsean commented 3 years ago

Hi all.I think this bug because that the select file's permission is readonly.V2x try to remove the folder but the file is readonly.

k4yt3x commented 3 years ago

This still needs to be verified by @jekabsmilbrets. Since Video2X (at least its Python code) never set permissions, the program should respect the user's permissions unless one of Video2X's components is proven to set the permissions by mistake.

jekabsmilbrets commented 3 years ago

I'll verify this by the end of this week.

jekabsmilbrets commented 3 years ago

Looks that it works now as intended;