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

[Errno 13] Permission denied, unable to open for writing #26448

Closed
losercamp opened this issue Aug 27, 2020 · 0 comments
Closed

[Errno 13] Permission denied, unable to open for writing #26448

losercamp opened this issue Aug 27, 2020 · 0 comments
Labels

Comments

@losercamp
Copy link

@losercamp losercamp commented Aug 27, 2020

Checklist

  • [x ] I'm asking a question
  • [x ] I've looked through the README and FAQ for similar questions
  • [x ] I've searched the bugtracker for similar questions including closed ones

Question

Setup youtube-dl.conf under C:\Users\User, only -o ~/Desktop in the file
Run youtube-dl and got ERROR: unable to open for writing: [Errno 13] Permission denied: 'C:\\Users\\user\\Desktop'
Have searched several similar posts. The right-click -> properties -> security setting permits all access to Desktop file. Using -o ~/tmp creates a file named tmp, not a video in tmp folder.

Thanks for reply.

-v code here

C:\Program Files>youtube-dl https://www.youtube.com/watch?v=l4zkc7KEvYM -v
[debug] System config: []
[debug] User config: ['-o', '~/Desktop']
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=l4zkc7KEvYM', '-v']
[debug] Encodings: locale cp65001, fs mbcs, out cp65001, pref cp65001
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] l4zkc7KEvYM: Downloading webpage
[youtube] {18} signature length 111, html5 player eecb0f1e
[youtube] {136} signature length 111, html5 player eecb0f1e
[youtube] {247} signature length 111, html5 player eecb0f1e
[youtube] {398} signature length 107, html5 player eecb0f1e
[youtube] {135} signature length 107, html5 player eecb0f1e
[youtube] {244} signature length 111, html5 player eecb0f1e
[youtube] {397} signature length 111, html5 player eecb0f1e
[youtube] {134} signature length 107, html5 player eecb0f1e
[youtube] {243} signature length 111, html5 player eecb0f1e
[youtube] {396} signature length 111, html5 player eecb0f1e
[youtube] {133} signature length 111, html5 player eecb0f1e
[youtube] {242} signature length 111, html5 player eecb0f1e
[youtube] {395} signature length 111, html5 player eecb0f1e
[youtube] {160} signature length 111, html5 player eecb0f1e
[youtube] {278} signature length 111, html5 player eecb0f1e
[youtube] {394} signature length 111, html5 player eecb0f1e
[youtube] {140} signature length 111, html5 player eecb0f1e
[youtube] {249} signature length 111, html5 player eecb0f1e
[youtube] {250} signature length 111, html5 player eecb0f1e
[youtube] {251} signature length 111, html5 player eecb0f1e
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://r5---sn-i3b7knld.googlevideo.com/videoplayback?expire=1598524166&ei=pjZHX_L3DsmqlQS2wIn4DQ&ip=203.218.193.14&id=o-AJ8D1A3ni5y2TtNs6jYnQb5YrX_g04x6r5PuUXwd_asD&itag=18&source=youtube&requiressl=yes&mh=Ci&mm=31%2C26&mn=sn-i3b7knld%2Csn-aigl6nek&ms=au%2Conr&mv=m&mvi=5&pl=19&gcr=hk&initcwndbps=1442500&vprv=1&mime=video%2Fmp4&gir=yes&clen=184774808&ratebypass=yes&dur=2320.462&lmt=1572695135054173&mt=1598502396&fvip=5&c=WEB&txp=1311222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cvprv%2Cmime%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhANBH96iLCJOs47HAeHTND52exG24tPIww7J31ENyTzKbAiEA7pEgW5W3CXMN7A7m8bOpShmmtn-xZMd3eENHvNCZgbU%3D&sig=AOq0QJ8wRQIgf2ZKCgi73KP6nk807MKoFgLV0BKZ8MY4Vp9dr0oV7a4CIQDxHkh-jyCs-4NiD366f3yA6gL6Uw3OoHoSIVD0p0qPZg=='
ERROR: unable to open for writing: [Errno 13] Permission denied: 'C:\\Users\\user\\Desktop'
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\downloader\http.py", line 250, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\utils.py", line 2054, in sanitize_open
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\user\\Desktop'
@losercamp losercamp added the question label Aug 27, 2020
@dstftw dstftw closed this Sep 6, 2020
@dstftw dstftw added the invalid label Sep 6, 2020
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.