ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.68k stars 9.97k forks source link

WARNING: unable to set language: <urlopen error [Errno 60] Operation timed out> #1954

Closed JCwinning closed 10 years ago

JCwinning commented 10 years ago

Please help me out here!

I am running mac ox 10.9 python 2.7

aca80165:bin apple$ youtube-dl -U youtube-dl is up-to-date (2013.12.11.2)

error message:

aca80165:bin apple$ youtube-dl "http://www.youtube.com/watch?v=bV9L5Ht9LgY" [youtube] Setting language WARNING: unable to set language: <urlopen error [Errno 60] Operation timed out> [youtube] bV9L5Ht9LgY: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 60] Operation timed out>

jaimeMF commented 10 years ago

Please port the full output of running youtube-dl "http://www.youtube.com/watch?v=bV9L5Ht9LgY" --verbose.

JCwinning commented 10 years ago
aca80165:bin apple$ youtube-dl "http://www.youtube.com/watch?v=bV9L5Ht9LgY" --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/watch?v=bV9L5Ht9LgY', '--verbose']
[debug] youtube-dl version 2013.12.11.2
[debug] Python version 2.7.5 - Darwin-13.0.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
WARNING: unable to set language: <urlopen error [Errno 60] Operation timed out>
[youtube] bV9L5Ht9LgY: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 60] Operation timed out>
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 167, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1029, in urlopen
    return self._opener.open(req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 561, in https_open
    return self.do_open(HTTPSConnectionV3, req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1184, in do_open
    raise URLError(err)
JCwinning commented 10 years ago

any help?

phihag commented 10 years ago

Mmm, this looks really strange, so I unfortunately can't offer a definitive diagnosis, but here are a couple of options.

phihag commented 10 years ago

If you are willing to invest the time and effort, you can also drop me an email so that we can arrange remote desktop access. With a packet capture, we could make sure that we pinpoint the problem. Feel free to create one yourself, if possible including you accessing YouTube with your browser.

JCwinning commented 10 years ago

Solved. just remember to change Proxy when you are in countries where can not access to youtube.