youtube-dl sits at setting language and doesn't move forward #267

Closed
johndoe32102002 opened this Issue Jan 7, 2012 · 5 comments

Comments

Projects
None yet
5 participants

Same issue as #107, but this issue was closed because unable to reproduce.

youtube-dl --version
2012.01.05

(failed back in November 2011 also, but I didn't report)

python --version
Python 2.7.2+

Error:
youtube-dl http://www.youtube.com/watch?v=H-WQs-fxqg8
[youtube] Setting language <-- Hangs here for any youtube link

Location: United States

phihag was assigned Feb 26, 2012

Collaborator

phihag commented Feb 26, 2012

Again, I'm sorry, but I can't reproduce this issue. We may be able to eliminate the Setting language step alltogether. I'll look into it in detail when I have the time; unfortunately, that will probably be in April. In the meantime; which Python and OS version are you using? Do you have IPv6 connectivity?

Collaborator

FiloSottile commented Mar 8, 2012

Experienced one time. Hadn't been able to reproduce anymore. Seems like a fault-prone request without timeout.

Nzen commented Apr 26, 2013

Experienced this behavior during a youtube outage, 7 hours ago today, as indicated by youtube reporting "error video not available", replay media catcher not grabbing vid, and corroborated by reports on downrightnow.
Concur on overly optimistic response to timeout. Perhaps check website's response more carefully & report retries or exit?

LookTJ commented Jan 3, 2014

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.youtube.com/watch?v=BY4YCdjGH8c']
WARNING: Assuming --restrict-filenames since file system encoding cannot encode all charactes. Set the LC_ALL environment variable to fix this.
[debug] youtube-dl version 2013.12.20
[debug] Python version 3.3.3 - Linux-3.12.6-1-ARCH-x86_64-with-arch
[debug] Proxy map: {}
[youtube] Setting language

I've been stuck with this issue as of today.. it worked before 12.20, because I downloaded prior that week.

It's reproducing to me.. I tried to build the git version from the AUR but it failed on me because of the following.

==> Making package: youtube-dl-git 3277-1 (Fri Jan 3 13:28:40 PST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating youtube-dl git repo...
Fetching origin
==> Validating source files with md5sums...
youtube-dl ... Skipped
==> Extracting sources...
-> Creating working copy of youtube-dl git repo...
Cloning into 'youtube-dl'...
done.
==> Starting pkgver()...
==> Removing existing pkg/ directory...
==> Starting build()...
zip --quiet youtube-dl youtube_dl/.py youtube_dl//.py
zip --quiet --junk-paths youtube-dl youtube_dl/main.py
echo '#!/usr/bin/env python' > youtube-dl
cat youtube-dl.zip >> youtube-dl
rm youtube-dl.zip
chmod a+x youtube-dl
COLUMNS=80 python -m youtube_dl --help | python devscripts/make_readme.py
Traceback (most recent call last):
File "devscripts/make_readme.py", line 8, in
oldreadme = f.read()
File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 13745: ordinal not in range(128)
Makefile:52: recipe for target 'README.md' failed
make: *
* [README.md] Error 1
==> ERROR: A failure occurred in build().
Aborting...

The build issue is due to being LC not being set properly.

The setting language in my case was due to ipv6 taking over ipv4 addresses...I have disabled ipv6 functionality completely from the kernel line and it started working again

Collaborator

phihag commented Jan 5, 2014

We have now changed our timeouts, but they are still large to accommodate users with extremely slow connections. You can pass in the --socket-timeout flag, so try youtube-dl --socket-timeout 2 to get a very fast error message.

phihag closed this Jan 5, 2014

@phihag phihag added a commit that referenced this issue Jan 5, 2014

@phihag phihag Make make_readme run in a locale-less environment
Mentioned in #267
1e91866
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment