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

ValueError: unichr() arg not in range(0x110000) (wide Python build) #7518

Closed
lalinsky opened this issue Nov 16, 2015 · 0 comments
Closed

ValueError: unichr() arg not in range(0x110000) (wide Python build) #7518

lalinsky opened this issue Nov 16, 2015 · 0 comments

Comments

@lalinsky
Copy link
Contributor

@lalinsky lalinsky commented Nov 16, 2015

Downloading this video fails because of text like "�" in the description.

$ PYTHONPATH=`pwd`  ./bin/youtube-dl --verbose --list-formats 'https://www.youtube.com/watch?v=2nXFzmAtsRM'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'--list-formats', u'https://www.youtube.com/watch?v=2nXFzmAtsRM']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.11.15
[debug] Git HEAD: bd1512d
[debug] Python version 2.7.9 - Linux-3.19.0-33-generic-x86_64-with-Ubuntu-15.04-vivid
[debug] exe versions: ffmpeg 2.5.8-0ubuntu0.15.04.1, ffprobe 2.5.8-0ubuntu0.15.04.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] 2nXFzmAtsRM: Downloading webpage
[youtube] 2nXFzmAtsRM: Downloading video info webpage
Traceback (most recent call last):
  File "./bin/youtube-dl", line 6, in <module>
    youtube_dl.main()
  File "/home/lukas/work/youtube-dl/youtube_dl/__init__.py", line 410, in main
    _real_main(argv)
  File "/home/lukas/work/youtube-dl/youtube_dl/__init__.py", line 400, in _real_main
    retcode = ydl.download(all_urls)
  File "/home/lukas/work/youtube-dl/youtube_dl/YoutubeDL.py", line 1666, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/home/lukas/work/youtube-dl/youtube_dl/YoutubeDL.py", line 661, in extract_info
    ie_result = ie.extract(url)
  File "/home/lukas/work/youtube-dl/youtube_dl/extractor/common.py", line 290, in extract
    return self._real_extract(url)
  File "/home/lukas/work/youtube-dl/youtube_dl/extractor/youtube.py", line 1157, in _real_extract
    video_description = clean_html(video_description)
  File "/home/lukas/work/youtube-dl/youtube_dl/utils.py", line 275, in clean_html
    html = unescapeHTML(html)
  File "/home/lukas/work/youtube-dl/youtube_dl/utils.py", line 411, in unescapeHTML
    r'&([^;]+);', lambda m: _htmlentity_transform(m.group(1)), s)
  File "/usr/lib/python2.7/re.py", line 155, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "/home/lukas/work/youtube-dl/youtube_dl/utils.py", line 411, in <lambda>
    r'&([^;]+);', lambda m: _htmlentity_transform(m.group(1)), s)
  File "/home/lukas/work/youtube-dl/youtube_dl/utils.py", line 399, in _htmlentity_transform
    return compat_chr(int(numstr, base))
ValueError: unichr() arg not in range(0x110000) (wide Python build)
@dstftw dstftw closed this in 7aefc49 Nov 16, 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
1 participant
You can’t perform that action at this time.