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

Latest Version of youtube-dl gives Python errors #4223

Closed
eddmy opened this issue Nov 17, 2014 · 10 comments
Closed

Latest Version of youtube-dl gives Python errors #4223

eddmy opened this issue Nov 17, 2014 · 10 comments

Comments

@eddmy
Copy link

eddmy commented Nov 17, 2014

Upgrading with
$ youtube-dl -U
breakes something...
$ youtube-dl
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/bin/youtube-dl/main.py", line 18, in
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 351, in main
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 60, in _real_main
File "/usr/bin/youtube-dl/youtube_dl/options.py", line 122, in parseOpts
File "/usr/lib64/python2.7/optparse.py", line 1018, in add_option
raise TypeError, "invalid arguments"
TypeError: invalid arguments

Do I have to upgrade Python ?

@phihag
Copy link
Contributor

phihag commented Nov 17, 2014

Can you post the output you get when add the -v option? youtube-dl works fine for me.

@eddmy
Copy link
Author

eddmy commented Nov 17, 2014

Since it crashes it doesn't matter what you write after "youtube-dl". The
output is always the same.

On Mon, Nov 17, 2014 at 3:44 PM, Philipp Hagemeister <
notifications@github.com> wrote:

Can you post the output you get when add the -v option? It works fine for
me.

Reply to this email directly or view it on GitHub
#4223 (comment).

@phihag
Copy link
Contributor

phihag commented Nov 17, 2014

Ok, then we're going to have to do this by hand:

  • What operating system and architecture are you on? Can you describe the distribution?
  • What is your Python library? What does python --version output? How did you procure Python?
  • What version of youtube-dl are you using, i.e. how did you update it last, and what is the md5sum of the file?

With these additions, we should be able to reproduce the problem, and then fix it or find a workaround. Note that a similar error was reported, but for Python 2.7.0, which should no longer be in use anywhere, since it contains significant bugs such as this one and has security vulnerabilities.

@eddmy
Copy link
Author

eddmy commented Nov 18, 2014

Open Suse 11.4 / 64 bit Intel

python --version
Python 2.7

YAST sais: 2.7-9.40.1 (x86_64)

youtube-dl was updated 2014-Nov-18 using youtube-dl -U

md5sum /usr/bin/youtube-dl
03ee1c60475c9eb4684eea8639606e2e /usr/bin/youtube-dl

Thanks

@eddmy
Copy link
Author

eddmy commented Nov 18, 2014

I installed Python 3.1.3 and changed the symbolic link so that the command works
$ python --version
Python 3.1.3

New error message is now
$ youtube-dl https://www.youtube.com/watch?v=jzkUUSWiM_4
Traceback (most recent call last):
File "/usr/lib64/python3.1/runpy.py", line 128, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python3.1/runpy.py", line 34, in _run_code
exec(code, run_globals)
File "/usr/bin/youtube-dl/main.py", line 15, in
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 58
setproctitle(u'youtube-dl')
^

@phihag
Copy link
Contributor

phihag commented Nov 18, 2014

Sorry for the needless trouble, but 3.1.3 never has been and is not supported by youtube-dl. It requires 3.3+ or a recent 2.6 or 2.7.

@eddmy
Copy link
Author

eddmy commented Nov 18, 2014

Recent ???
OK, I downgraded Python and youtube-dl again, so the error message is pretty downgraded as well.
:-)

$ youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.08.10
[debug] Python version 2.7.0 - Linux-2.6.37.6-0.20-desktop-x86_64-with-SuSE-11.4-x86_64
[debug] Proxy map: {}
Usage: youtube-dl [options] url [url...]

$ youtube-dl https://www.youtube.com/watch?v=jzkUUSWiM_4
[youtube] Setting language
[youtube] jzkUUSWiM_4: Downloading webpage
[youtube] jzkUUSWiM_4: Downloading video info webpage
[youtube] jzkUUSWiM_4: Extracting video information
[youtube] jzkUUSWiM_4: Encrypted signatures detected.
[youtube] jzkUUSWiM_4: Downloading js player vflM7pYrM
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
video_id, player_url, s
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 383, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 454, in _parse_sig_js
u'Initial JS player signature function name')
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 391, in _search_regex
raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

Back to square one - obviously.

@Roman2K
Copy link
Contributor

Roman2K commented Nov 18, 2014

@eddmy Slight quiproquo it seems. @phihag meant a recent 2.7.x version, like 2.7.8 (see Downloads).

Just tested with 2.7.8, works fine.

@phihag
Copy link
Contributor

phihag commented Nov 19, 2014

Installing OpenSuse 11.04, I have found to be their Python version the horribly outdated 2.7.0.

@phihag phihag closed this as completed in e07e931 Nov 19, 2014
@phihag
Copy link
Contributor

phihag commented Nov 20, 2014

Thank you for the report! Fixed in youtube-dl 2014.11.20. See our FAQ if you have problems updating.

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

3 participants