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

Issues with youtube dl on Azure app services #17048

Closed
nkt217 opened this issue Jul 23, 2018 · 1 comment
Closed

Issues with youtube dl on Azure app services #17048

nkt217 opened this issue Jul 23, 2018 · 1 comment

Comments

@nkt217
Copy link

@nkt217 nkt217 commented Jul 23, 2018

Bug when trying to download youtube videos on Azure app services.

I was using youtube-dl 2018.04.03 till yesterday and updated to the latest 2018.7.21 today and on both version facing the same issues when trying to download youtube videos or captions.
Attached the logs that I am seeing below. I am using this from the node module here.

youtube-dl --verbose "https://www.youtube.com/watch?v=9Hz3P1VgLz4"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=9Hz3P1VgLz4']
Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpphie_b_3\build\youtube_dl\__init__.py", line 472, in main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpphie_b_3\build\youtube_dl\__init__.py", line 439, in _real_main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpphie_b_3\build\youtube_dl\YoutubeDL.py", line 414, in __init__
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpphie_b_3\build\youtube_dl\YoutubeDL.py", line 2319, in _setup_opener
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpphie_b_3\build\youtube_dl\utils.py", line 700, in make_HTTPS_handler
  File "C:\Python\Python34\lib\ssl.py", line 439, in create_default_context
  File "C:\Python\Python34\lib\ssl.py", line 390, in load_default_certs
  File "C:\Python\Python34\lib\ssl.py", line 377, in _load_windows_store_certs
PermissionError: [WinError 5] Access is denied

I tried the solution presented here but when I try with python version 3.5.2 and zipped youtube-dl I see the below error.

D:\home\python354x86\python.exe: can't find '__main__' module in 'youtube-dl'

What could I be doing wrong here?

My Description

I used this on my local as well as on an Ubuntu machine and it works fine.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 23, 2018

exe ships own older python version that has this python bug. You have to either build exe against newer python version or run it from sources.

@dstftw dstftw closed this Jul 23, 2018
@dstftw dstftw mentioned this issue Mar 21, 2020
3 of 3 tasks complete
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.