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 error " ValueError: invalid literal for int() with base 10: 'base' " #3699

Closed
ghost opened this issue Sep 8, 2014 · 1 comment
Closed

Comments

@ghost
Copy link

@ghost ghost commented Sep 8, 2014

I'm trying to download this video from Vimeo and I'm getting the following error:

youtube-dl http://vimeo.com/73378185[vimeo] 73378185: Downloading webpage
[vimeo] 73378185: Extracting information
[vimeo] 73378185: Downloading webpage
Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 6, in <module>
    youtube_dl.main()
  File "/usr/lib/python2.7/dist-packages/youtube_dl/__init__.py", line 804, in main
    _real_main(argv)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/__init__.py", line 794, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 982, in download
    self.extract_info(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 493, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 158, in extract
    return self._real_extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/vimeo.py", line 223, in _real_extract
    _, video_thumbnail = sorted((int(width), t_url) for (width, t_url) in config["video"]["thumbs"].items())[-1]
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/vimeo.py", line 223, in <genexpr>
    _, video_thumbnail = sorted((int(width), t_url) for (width, t_url) in config["video"]["thumbs"].items())[-1]
ValueError: invalid literal for int() with base 10: 'base'

I'm using youtube-dl version 2014.02.17 which I installed via Ubuntu's Software Center.

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.02.17
[debug] Python version 2.7.6 - Linux-3.13.0-35-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] Proxy map: {}

The direct link to the video using the browser's network inspector is http://pdl.vimeocdn.com/95104/042/186446563.mp4?token2=1410167306_238c00aab657ed1d698224f1cbfc192c&aksessionid=e1d94c12385a5e18 which I shortened to http://pdl.vimeocdn.com/95104/042/186446563.mp4 and used to download it manually.

I also tried this from a second machine also running Ubuntu 14.04 and got the identical error. Any tips on how to get this working again?

@phihag
Copy link
Contributor

@phihag phihag commented Sep 8, 2014

As you mention yourself, you are using an ancient (in terms of speed of website changes) version of youtube-dl, and one we have no control over. The problem has long been fixed in youtube-dl. Either contact the Ubuntu project's maintainers or follow our manual installation instructions to get an up-to-date version.

In a pinch, this should do:

sudo apt-get remove -y youtube-dl
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
hash -r
youtube-dl --version
@phihag phihag closed this Sep 8, 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
1 participant
You can’t perform that action at this time.