"AssertionError: we should not get here!" #391

Closed
opened 2026-02-20 21:11:32 -05:00 by deekerman · 2 comments
Owner

Originally created by @Gumnos on GitHub (Nov 2, 2012).

I've been unable to duplicate this (running master, SHA: b7a34316d2 ), using the same URL listed. However, code thought unreachable was reached. Full TB below:

gumnos@box:~$ youtube-dl --get-url --prefer-free-formats -f 43 "http://www.youtube.com/watch?v=YHRxv-40WMU" | xclip -selection clipboard
Fetching from http://www.youtube.com/watch?v=YHRxv-40WMU
(122, 170)
Traceback (most recent call last):
  File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/__main__.py", line 7, in <module>
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/__init__.py", line 548, in main

  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/__init__.py", line 532, in _real_main

  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/FileDownloader.py", line 475, in download
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/InfoExtractors.py", line 82, in extract
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/InfoExtractors.py", line 379, in _real_extract
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/utils.py", line 141, in get_element_by_id
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/utils.py", line 95, in loads
  File "/usr/lib/python2.6/HTMLParser.py", line 108, in feed
    self.goahead(0)
  File "/usr/lib/python2.6/HTMLParser.py", line 148, in goahead
    k = self.parse_starttag(i)
  File "/usr/lib/python2.6/HTMLParser.py", line 229, in parse_starttag
    endpos = self.check_for_whole_start_tag(i)
  File "/usr/lib/python2.6/HTMLParser.py", line 305, in check_for_whole_start_tag
    raise AssertionError("we should not get here!")
AssertionError: we should not get here!

Originally created by @Gumnos on GitHub (Nov 2, 2012). I've been unable to duplicate this (running master, SHA: b7a34316d20d6eee3d44a7c3294cf01592e07388 ), using the same URL listed. However, code thought unreachable was reached. Full TB below: ``` gumnos@box:~$ youtube-dl --get-url --prefer-free-formats -f 43 "http://www.youtube.com/watch?v=YHRxv-40WMU" | xclip -selection clipboard Fetching from http://www.youtube.com/watch?v=YHRxv-40WMU (122, 170) Traceback (most recent call last): File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.6/runpy.py", line 34, in _run_code exec code in run_globals File "/home/tim/bin/downloads/youtube-dl/youtube-dl/__main__.py", line 7, in <module> File "/home/tim/bin/downloads/youtube-dl/youtube-dl/__init__.py", line 548, in main File "/home/tim/bin/downloads/youtube-dl/youtube-dl/__init__.py", line 532, in _real_main File "/home/tim/bin/downloads/youtube-dl/youtube-dl/FileDownloader.py", line 475, in download File "/home/tim/bin/downloads/youtube-dl/youtube-dl/InfoExtractors.py", line 82, in extract File "/home/tim/bin/downloads/youtube-dl/youtube-dl/InfoExtractors.py", line 379, in _real_extract File "/home/tim/bin/downloads/youtube-dl/youtube-dl/utils.py", line 141, in get_element_by_id File "/home/tim/bin/downloads/youtube-dl/youtube-dl/utils.py", line 95, in loads File "/usr/lib/python2.6/HTMLParser.py", line 108, in feed self.goahead(0) File "/usr/lib/python2.6/HTMLParser.py", line 148, in goahead k = self.parse_starttag(i) File "/usr/lib/python2.6/HTMLParser.py", line 229, in parse_starttag endpos = self.check_for_whole_start_tag(i) File "/usr/lib/python2.6/HTMLParser.py", line 305, in check_for_whole_start_tag raise AssertionError("we should not get here!") AssertionError: we should not get here! ```
Author
Owner

@phihag commented on GitHub (Nov 25, 2012):

Thanks! This looks like an internal Python error.

@phihag commented on GitHub (Nov 25, 2012): Thanks! This looks like an internal Python error.
Author
Owner

@jaimeMF commented on GitHub (Jan 26, 2015):

Starting with 3828505646, we no longer use the HTMLParser from the standard library. Therefore I'm closing the issue. Thanks for the report!

@jaimeMF commented on GitHub (Jan 26, 2015): Starting with 3828505646a58d5e19f0ffe77821650e25d72b3a, we no longer use the HTMLParser from the standard library. Therefore I'm closing the issue. Thanks for the report!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#391
No description provided.