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

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

Closed
Gumnos opened this issue Nov 3, 2012 · 2 comments
Closed

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

Gumnos opened this issue Nov 3, 2012 · 2 comments

Comments

@Gumnos
Copy link

@Gumnos Gumnos commented Nov 3, 2012

I've been unable to duplicate this (running master, SHA: b7a3431 ), 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!

@phihag
Copy link
Contributor

@phihag phihag commented Nov 26, 2012

Thanks! This looks like an internal Python error.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 26, 2015

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

@jaimeMF jaimeMF closed this Jan 26, 2015
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
3 participants
You can’t perform that action at this time.