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

PermissionError: [WinError 5] Access is denied #17312

Closed
lsborase opened this issue Aug 23, 2018 · 4 comments
Closed

PermissionError: [WinError 5] Access is denied #17312

lsborase opened this issue Aug 23, 2018 · 4 comments

Comments

@lsborase
Copy link

@lsborase lsborase commented Aug 23, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.08.22. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.08.22

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

D:\>youtube-dl -v "https://www.youtube.com/watch?t=4&v=BaW_jenozKc"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?t=4&v=BaW_jenozKc']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.08.22
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.15063
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading video info webpage
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://r11---sn-xupn5a5u-4wgez.googlevideo.com/videoplayback?sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&expire=1535059889&key=yt6&initcwndbps=422500&mime=video%2Fmp4&ipbits=0&mt=1535038234&fvip=3&ratebypass=yes&itag=22&requiressl=yes&c=WEB&signature=6193B34D9F679D5F4AA3A58844773C8839105CEF.CB7E5BC3996CD6ED07F55DC5DB3CE00AA4B1C6F2&nh=EAE%2C&mn=sn-xupn5a5u-4wgez%2Csn-hgn7rn7y&mm=31%2C26&id=o-AFeHoPDkg_55CGNEykjtPpap7vHXss7sNPq9Gn-10CAl&mv=m&source=youtube&ms=au%2Conr&ei=UdN-W4adHM7JxwKcjInIAw&lmt=1472250137564567&ip=86.99.28.152&pl=22&dur=9.891'
[download] Destination: youtube-dl test video ''_ä↭𝕐-BaW_jenozKc.mp4
[download] 100.0% of 1.74MiB at 1001.49KiB/s ETA 00:00ERROR: unable to rename file: [WinError 5] Access is denied: "youtube-dl test video ''_ä↭𝕐-BaW_jenozKc.mp4.part" -> "youtube-dl test video ''_ä↭𝕐-BaW_jenozKc.mp4"
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpsjdqsmfs\build\youtube_dl\downloader\common.py", line 200, in try_rename
PermissionError: [WinError 5] Access is denied: "youtube-dl test video ''_ä↭𝕐-BaW_jenozKc.mp4.part" -> "youtube-dl test video ''_ä↭𝕐-BaW_jenozKc.mp4"


...
<end of log>
having all permissions on the download destination .same issue is whe downloading youtube playlist.
Please help
@lsborase
Copy link
Author

@lsborase lsborase commented Aug 23, 2018

I am on windown 10.
is there anything in missing.
checked all required configurations to run youtube-dl . download is successful but renaming file is failed.
@lsborase
Copy link
Author

@lsborase lsborase commented Aug 23, 2018

I am not able to find below file on my computer.
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpsjdqsmfs\build\youtube_dl\downloader\common.py",

Location C:\Users\dst is not present at all
@lsborase
Copy link
Author

@lsborase lsborase commented Aug 23, 2018

Running as administrator but still same issue.Please help

@lsborase
Copy link
Author

@lsborase lsborase commented Aug 23, 2018

issue is solved using workaround .
i used --no-part option in command so videos are directly downloaded as .mp4 format skipping rename operation.
Now able to download all videos.
Thanks.

@lsborase lsborase closed this Aug 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.