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

Youtube Issue #4100

Closed
seteBR opened this issue Nov 4, 2014 · 11 comments
Closed

Youtube Issue #4100

seteBR opened this issue Nov 4, 2014 · 11 comments

Comments

@seteBR
Copy link

@seteBR seteBR commented Nov 4, 2014

youtube-dl https://www.youtube.com/watch?v=BMTEqvYBbMc -f best
[youtube] Confirming age
[youtube] BMTEqvYBbMc: Downloading webpage
[youtube] BMTEqvYBbMc: Downloading video info webpage
[youtube] BMTEqvYBbMc: Extracting video information
Traceback (most recent call last):
File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/main.py", line 18, in
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 349, in main
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 339, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1082, in download
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 533, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 198, in extract
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 792, in _real_extract
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 476, in get_element_by_id
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 482, in get_element_by_attribute
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 405, in loads
File "/usr/lib64/python2.6/HTMLParser.py", line 108, in feed
self.goahead(0)
File "/usr/lib64/python2.6/HTMLParser.py", line 150, in goahead
k = self.parse_endtag(i)
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 472, in
File "/usr/lib64/python2.6/HTMLParser.py", line 310, in parse_endtag
assert rawdata[i:i+2] == "</", "unexpected call to parse_endtag"
AssertionError: unexpected call to parse_endtag

@naglis
Copy link
Collaborator

@naglis naglis commented Nov 4, 2014

Hi @seteBR,
please post the full output you get when you run youtube-dl with the --verbose flag on:

youtube-dl 'https://www.youtube.com/watch?v=BMTEqvYBbMc' -f best --verbose
@grain1
Copy link

@grain1 grain1 commented Nov 4, 2014

I'm having the same issue. I ran the command you gave and here's the full output:

youtube-dl 'https://www.youtube.com/watch?v=BMTEqvYBbMc' -f best --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=BMTEqvYBbMc', '-f', 'best', '--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.11.02.1
[debug] Python version 2.6.6 - Linux-2.6.32-358.2.1.el6.x86_64-x86_64-with-centos-6.4-Final
[debug] exe versions: ffmpeg 1.0, ffprobe 1.0
[debug] Proxy map: {}
[youtube] Confirming age
[youtube] BMTEqvYBbMc: Downloading webpage
[youtube] BMTEqvYBbMc: Downloading video info webpage
[youtube] BMTEqvYBbMc: Extracting video information
Traceback (most recent call last):
File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python2.6/runpy.py", line 34, 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 349, in main
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 339, in _real_main
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1082, in download
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 533, in extract_info
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 198, in extract
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 790, in _real_extract
File "/usr/bin/youtube-dl/youtube_dl/utils.py", line 476, in get_element_by_id
File "/usr/bin/youtube-dl/youtube_dl/utils.py", line 482, in get_element_by_attribute
File "/usr/bin/youtube-dl/youtube_dl/utils.py", line 405, in loads
File "/usr/lib64/python2.6/HTMLParser.py", line 108, in feed
self.goahead(0)
File "/usr/lib64/python2.6/HTMLParser.py", line 150, in goahead
k = self.parse_endtag(i)
File "/usr/bin/youtube-dl/youtube_dl/utils.py", line 472, in
File "/usr/lib64/python2.6/HTMLParser.py", line 310, in parse_endtag
assert rawdata[i:i+2] == "</", "unexpected call to parse_endtag"
AssertionError: unexpected call to parse_endtag

@ayushhgoyal
Copy link

@ayushhgoyal ayushhgoyal commented Nov 4, 2014

I am getting same issue, I installed youtube-dl on AWS and getting this error for few urls while they work perfectly on my local system.

@seteBR
Copy link
Author

@seteBR seteBR commented Nov 4, 2014

Hi @naglis,

The output:
youtube-dl https://www.youtube.com/watch?v=BMTEqvYBbMc -f best -g --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=BMTEqvYBbMc', '-f', 'best', '-g', '--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.11.02.1
[debug] Python version 2.6.6 - Linux-2.6.32-431.29.2.el6.x86_64-x86_64-with-centos-6.6-Final
[debug] exe versions: none
[debug] Proxy map: {}
Traceback (most recent call last):
File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/main.py", line 18, in
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 349, in main
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 339, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1082, in download
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 533, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 198, in extract
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 790, in _real_extract
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 476, in get_element_by_id
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 482, in get_element_by_attribute
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 405, in loads
File "/usr/lib64/python2.6/HTMLParser.py", line 108, in feed
self.goahead(0)
File "/usr/lib64/python2.6/HTMLParser.py", line 150, in goahead
k = self.parse_endtag(i)
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 472, in
File "/usr/lib64/python2.6/HTMLParser.py", line 310, in parse_endtag
assert rawdata[i:i+2] == "</", "unexpected call to parse_endtag"
AssertionError: unexpected call to parse_endtag

@TheBoroer
Copy link

@TheBoroer TheBoroer commented Nov 4, 2014

I'm getting this error as well.
I can post a full list of URLs that i've gotten this error on.

@naglis
Copy link
Collaborator

@naglis naglis commented Nov 4, 2014

I can't reproduce it with Python 2.6.9.

This is possibly related/duplicate of #719.

@ayushhgoyal @blackpropeller, with what versions of Python can you reproduce this error? Please provide the full version (major,minor,micro), like 2.6.6 or 2.6.9. You can see what version of Python youtube-dl uses in the output of youtube-dl with the --verbose flag on:

youtube-dl --verbose
@TheBoroer
Copy link

@TheBoroer TheBoroer commented Nov 4, 2014

I'm experiencing this issue with Python version 2.6.6

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.youtube.com/watch?v=2mIiGiu9Urk']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.11.02.1
[debug] Python version 2.6.6 - Linux-3.10.23-xxxx-std-ipv6-64-x86_64-with-centos-6.5-Final
[debug] exe versions: ffmpeg 0.6.5, ffprobe 0.6.5
[debug] Proxy map: {}
[youtube] Confirming age
[youtube] 2mIiGiu9Urk: Downloading webpage
[youtube] 2mIiGiu9Urk: Downloading video info webpage
[youtube] 2mIiGiu9Urk: Extracting video information
Traceback (most recent call last):
  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "./youtube-link/__main__.py", line 18, in <module>
  File "./youtube-link/youtube_dl/__init__.py", line 349, in main
  File "./youtube-link/youtube_dl/__init__.py", line 339, in _real_main
  File "./youtube-link/youtube_dl/YoutubeDL.py", line 1082, in download
  File "./youtube-link/youtube_dl/YoutubeDL.py", line 533, in extract_info
  File "./youtube-link/youtube_dl/extractor/common.py", line 198, in extract
  File "./youtube-link/youtube_dl/extractor/youtube.py", line 790, in _real_extract
  File "./youtube-link/youtube_dl/utils.py", line 476, in get_element_by_id
  File "./youtube-link/youtube_dl/utils.py", line 482, in get_element_by_attribute
  File "./youtube-link/youtube_dl/utils.py", line 405, in loads
  File "/usr/lib64/python2.6/HTMLParser.py", line 108, in feed
    self.goahead(0)
  File "/usr/lib64/python2.6/HTMLParser.py", line 150, in goahead
    k = self.parse_endtag(i)
  File "./youtube-link/youtube_dl/utils.py", line 472, in <lambda>
  File "/usr/lib64/python2.6/HTMLParser.py", line 310, in parse_endtag
    assert rawdata[i:i+2] == "</", "unexpected call to parse_endtag"
AssertionError: unexpected call to parse_endtag
@seteBR
Copy link
Author

@seteBR seteBR commented Nov 4, 2014

I have a 2.6.6 working in one system and not working in others:
youtube-dl https://www.youtube.com/watch?v=BMTEqvYBbMc -f best --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=BMTEqvYBbMc', '-f', 'best', '--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.11.02.1
[debug] Python version 2.6.6 - Linux-2.6.32-431.29.2.el6.x86_64-x86_64-with-centos-6.6-Final
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] Confirming age
[youtube] BMTEqvYBbMc: Downloading webpage
[youtube] BMTEqvYBbMc: Downloading video info webpage
[youtube] BMTEqvYBbMc: Extracting video information
[youtube] BMTEqvYBbMc: Downloading DASH manifest
[debug] Invoking downloader on u'https://r3---sn-4g57knkz.googlevideo.com/videoplayback?requiressl=yes&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cnh%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&id=o-AGTIL5HVVSgNp92steVQV21ebUMH_MoBNariXw186nVr&signature=9971D83EAE2FA707E50583558859163BEA9C7986.EAEB43E8AA81F407CE83FA26EB05D9A9F8733F67&ip=2a01%3A4f8%3Ad13%3A1ac4%3A%3A2&key=yt5&fexp=900064%2C930666%2C932404%2C936118%2C947209%2C947215%2C948124%2C952302%2C952901%2C953912%2C957103%2C957201&ms=au&mv=m&mt=1415130055&initcwndbps=4868750&sver=3&itag=22&upn=Iuy4cFzWjhY&source=youtube&mm=31&nh=IgpwcjAyLmZyYTA1KgkxMjcuMC4wLjE&expire=1415151830&ipbits=0&ratebypass=yes'
[download] K. Michelle - Love 'Em All (Official Music Video)-BMTEqvYBbMc.mp4 has already been downloaded

@ayushhgoyal
Copy link

@ayushhgoyal ayushhgoyal commented Nov 4, 2014

Getting error with Python version: 2.6.9

@seteBR
Copy link
Author

@seteBR seteBR commented Nov 4, 2014

Working with python 3.4.1.

python3.4 /usr/local/bin/youtube-dl https://www.youtube.com/watch?v=BMTEqvYBbMc -f best -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=BMTEqvYBbMc', '-f', 'best', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.10.30
[debug] Python version 3.4.1 - Linux-2.6.32-431.1.2.0.1.el6.x86_64-x86_64-with-centos-6.6-Final
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] Confirming age
[youtube] BMTEqvYBbMc: Downloading webpage
[youtube] BMTEqvYBbMc: Downloading video info webpage
[youtube] BMTEqvYBbMc: Extracting video information
[youtube] BMTEqvYBbMc: Downloading DASH manifest
[debug] Invoking downloader on 'https://r3---sn-ab5l6nsl.googlevideo.com/videoplayback?ratebypass=yes&mm=31&requiressl=yes&key=yt5&expire=1415157301&sver=3&source=youtube&ms=au&mt=1415135556&mv=m&ipbits=0&signature=10A7AC3066AAFE3C38671FC09ACB874519D893A3.6FAC8F31BBA0B79E42D97CFEA7DFD613966B4679&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&fexp=902544%2C912328%2C924639%2C930666%2C932404%2C938652%2C939981%2C945120%2C945321%2C947209%2C947215%2C948124%2C952302%2C952901%2C953912%2C957103%2C957201&ip=2604%3Aa880%3A800%3A10%3A%3A177%3Ad001&id=o-AMQu8Mr-Bz0z_dEJQn_N6CJo8bjQdgx3ymZuc3Jj9Ays&upn=a16lK_4PC1I&itag=22&initcwndbps=14011250'
[download] K. Michelle - Love 'Em All (Official Music Video)-BMTEqvYBbMc.mp4 has already been downloaded

@phihag
Copy link
Contributor

@phihag phihag commented Nov 4, 2014

Thank you for the report. I believe this issue to be fixed in youtube-dl 2014.11.04. Refer to our FAQ to find out how to update. Please comment or open a new issue if the issue persists with the new version.

@phihag phihag closed this Nov 4, 2014
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
6 participants
You can’t perform that action at this time.