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

Vimeo downloading crashes with: AttributeError: 'NoneType' object has no attribute 'group' #662

Closed
amarshall opened this issue Feb 1, 2013 · 9 comments

Comments

@amarshall
Copy link

@amarshall amarshall commented Feb 1, 2013

Tried with multiple videos, both HTTP & HTTPS URLs. All fail.

% youtube-dl -v 'https://vimeo.com/57878898'
[debug] youtube-dl version 2013.01.28
[debug] Python version 2.7.2 - Darwin-12.2.0-x86_64-i386-64bit
[debug] Proxy map: {}
[vimeo] 57878898: Downloading webpage
[vimeo] 57878898: Extracting information
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 17, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 494, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 478, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/FileDownloader.py", line 503, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 93, in extract
  File "/usr/local/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 1033, in _real_extract
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 292, in get_element_by_attribute
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 240, in loads
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/HTMLParser.py", line 108, in feed
    self.goahead(0)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/HTMLParser.py", line 150, in goahead
    k = self.parse_endtag(i)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/HTMLParser.py", line 318, in parse_endtag
    tag = match.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
zsh: exit 1     youtube-dl -v 'https://vimeo.com/57878898'
@phihag
Copy link
Contributor

@phihag phihag commented Feb 1, 2013

Unfortunately, I cannot reproduce this issue on Python 2.7.3 on Linux. This looks like an internal Python error. We'll investigate, thanks for reporting!

@5shekel
Copy link

@5shekel 5shekel commented Feb 1, 2013

works for me without encasing url with ``
win7/64bit / python2.7

On Fri, Feb 1, 2013 at 10:50 AM, Philipp Hagemeister <
notifications@github.com> wrote:

Unfortunately, I cannot reproduce this issue on Python 2.7.3 on Linux.
This looks like an internal Python error. We'll investigate, thanks for
reporting!


Reply to this email directly or view it on GitHubhttps://github.com//issues/662#issuecomment-12985614.

yair99@gmail
050-6301212
tlv, israel

@phihag
Copy link
Contributor

@phihag phihag commented Feb 1, 2013

@yoshco 2.7.3 or 2.7.2? If it fails on 2.7.2, but not 2.7.3, that may be the issue.

@5shekel
Copy link

@5shekel 5shekel commented Feb 1, 2013

im on 2.7.3, sorry for ommiting
i still think the problem is with encasing the url.

On Fri, Feb 1, 2013 at 11:02 AM, Philipp Hagemeister <
notifications@github.com> wrote:

@yoshco https://github.com/yoshco 2.7.3 or 2.7.2? If it fails on 2.7.2,
but not 2.7.3, that may be the issue.


Reply to this email directly or view it on GitHubhttps://github.com//issues/662#issuecomment-12985968.

yair99@gmail
050-6301212
tlv, israel

@phihag
Copy link
Contributor

@phihag phihag commented Feb 1, 2013

@yoshco No, encasing the URL is no problem and has no effect in any remotely POSIX-compatible shell, which zsh is. youtube-dl doesn't even get the quotes in the first place.

@lsousa
Copy link

@lsousa lsousa commented Feb 1, 2013

I'm having the same issues with python 2.6.6 / Debian 6.0:

$ python ./youtube-dl 'http://vimeo.com/33186972'
[vimeo] 33186972: Downloading webpage
[vimeo] 33186972: Extracting information
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 "/youtube-dl/__main__.py", line 17, in <module>
  File "/youtube-dl/youtube_dl/__init__.py", line 494, in main
  File "/youtube-dl/youtube_dl/__init__.py", line 478, in _real_main
  File "/youtube-dl/youtube_dl/FileDownloader.py", line 503, in download
  File "/youtube-dl/youtube_dl/InfoExtractors.py", line 92, in extract
  File "/youtube-dl/youtube_dl/InfoExtractors.py", line 1032, in _real_extract
  File "/youtube-dl/youtube_dl/utils.py", line 292, in get_element_by_attribute
  File "/youtube-dl/youtube_dl/utils.py", line 240, in loads
  File "/usr/lib/python2.6/HTMLParser.py", line 108, in feed
    self.goahead(0)
  File "/usr/lib/python2.6/HTMLParser.py", line 150, in goahead
    k = self.parse_endtag(i)
  File "/usr/lib/python2.6/HTMLParser.py", line 318, in parse_endtag
    tag = match.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

$ python --version
Python 2.6.6

It works fine on another machine using Python 2.7.3/Ubuntu 12.10 though.

@phihag phihag closed this in 3b024e1 Feb 1, 2013
@phihag
Copy link
Contributor

@phihag phihag commented Feb 1, 2013

Thanks for reporting, fixed in youtube-dl 2013.02.01. Type

sudo youtube-dl -U

to update.

@lsousa
Copy link

@lsousa lsousa commented Feb 1, 2013

Thanks for fixing it so quickly. It's working now 👍

@amarshall
Copy link
Author

@amarshall amarshall commented Feb 2, 2013

Awesomely quick fix, thanks!

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
4 participants
You can’t perform that action at this time.