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

Not able to download private videos on EC2 instance using authentication. #14014

Closed
adil9 opened this issue Aug 24, 2017 · 1 comment
Closed

Not able to download private videos on EC2 instance using authentication. #14014

adil9 opened this issue Aug 24, 2017 · 1 comment
Labels

Comments

@adil9
Copy link

@adil9 adil9 commented Aug 24, 2017

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 2017.08.23. 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 2017.08.23

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

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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

ubuntu@ip-172-30-0-137:~$ youtube-dl --cookies cookies.txt https://www.youtube.com/watch?v=x-5V_RS3Q48 -u <my_email> -p <my_password> -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--cookies', u'cookies.txt', u'https://www.youtube.com/watch?v=x-5V_RS3Q48', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.08.23
[debug] Python version 2.7.6 - Linux-3.13.0-128-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 9.20-6, avprobe 9.20-6, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Looking up account info
[youtube] Logging in
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 465, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 455, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1958, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 776, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 391, in initialize
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 252, in _real_initialize
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 232, in _login
UnboundLocalError: local variable 'check_cookie_url' referenced before assignment

Description of your issue, suggested solution and other information

I want to download youtube private videos from my own channel.
I am able to download the video on a local linux machine using the same command I showed above, however, I am not able to download the same video from any ec2 instance (still using the same command).

youtube-dl is latest version, python is 2.7.6 on both machines and only difference I can find out is linux kenrel version on ec2 machine is "Linux-3.13.0-128-generic-x86_64-with-Ubuntu-14.04-trusty" while on local machine it is "Linux-3.19.0-25-generic-x86_64-with-Ubuntu-14.04-trusty".

I have already asked the same question on stack overflow here, but no response yet.

I found similar issue already listed as #13822, but it is closed.

Thanks

@dstftw dstftw closed this Aug 24, 2017
@dstftw dstftw added the duplicate label Aug 24, 2017
@adil9
Copy link
Author

@adil9 adil9 commented Aug 24, 2017

Can I know the reason to close this?
Is the linked issue resolved??

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.