Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions #10

Open
nikvs216 opened this issue Aug 2, 2022 · 7 comments
Open

Permissions #10

nikvs216 opened this issue Aug 2, 2022 · 7 comments

Comments

@nikvs216
Copy link

nikvs216 commented Aug 2, 2022

Traceback (most recent call last):
File "C:\YouTube-shorts-generator-main\main.py", line 17, in
os.remove(directory + file)
PermissionError: [WinError 5] Acces denied
Runned with CMD as a Admin.
Anyone ideas?

@zackmawaldi
Copy link
Owner

Hi, same error is mentioned before. Check out: #6
It seems to be a common theme with windows and python editing stuff. If you do enough googling, I think you'll find a solution. I worked on this in Linux and Mac. Hope this helps!

@nikvs216
Copy link
Author

nikvs216 commented Aug 5, 2022

On which version of Python did you worked on?

@zackmawaldi
Copy link
Owner

Python 3.8 if I recall correctly. 3+ for sure

@jxck13
Copy link

jxck13 commented Nov 20, 2022

Hi @zackmawaldi. I ran into this same problem on Windows 11, and I have tried literally every solution to fix it, but it just doesn't work :( It would be really helpful if you could take a better look at this. Thank you.

Traceback (most recent call last):
File "C:\Users\me\PycharmProjects\YouTube-shorts-generator\main.py", line 17, in
os.remove(directory + file)
PermissionError: [WinError 5] Access is denied: 'temp_clips/redvid_temp'

Process finished with exit code 1

@zackmawaldi
Copy link
Owner

@jxck13 Hmm... I updated the code recently, can you retry it with the new code? (and also sorry for late reply, life got super busy!)

@BuddyNotFound
Copy link

@jxck13 Hmm... I updated the code recently, can you retry it with the new code? (and also sorry for late reply, life got super busy!)

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'videos2\main_clip.mp4'

error is still here (windows 11, 3.11.4)

@xdrushxd
Copy link

Got the same error, the video gets downloaded and the program did work once.

PermissionError: [WinError 32] Het proces heeft geen toegang tot het bestand omdat het door een ander
proces wordt gebruikt: 'temp_clips\main_clip.mp4'

Retrying...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants