Package: youtube-dl
Version: 2021.06.06

It does not happen every time. Usually it works just fine but some
videos, this one https://www.youtube.com/watch?v=Pz77_apK7Xs paticularly
causes this error.

I use
/usr/local/bin/youtube-dl/youtube-dl -f 22 --recode-video mp4
--write-info-json --restrict-filenames --write-all-thumbnails
https://www.youtube.com/watch?v=Pz77_apK7Xs > stdout.txt 2> stderr.txt

 stdout.txt contains:
[youtube] Pz77_apK7Xs: Downloading webpage
[youtube] Pz77_apK7Xs: Refetching age-gated info webpage

 stderr.txt contains:
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/local/bin/youtube-dl/youtube-dl/youtube_dl/__init__.py", line 475, 
in main
  File "/usr/local/bin/youtube-dl/youtube-dl/youtube_dl/__init__.py", line 465, 
in _real_main
  File "/usr/local/bin/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 
2069, in download
  File "/usr/local/bin/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 
808, in extract_info
  File "/usr/local/bin/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 
815, in wrapper
  File "/usr/local/bin/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 
836, in __extract_info
  File "/usr/local/bin/youtube-dl/youtube-dl/youtube_dl/extractor/common.py", 
line 534, in extract
  File "/usr/local/bin/youtube-dl/youtube-dl/youtube_dl/extractor/youtube.py", 
line 1503, in _real_extract
  File "/usr/local/bin/youtube-dl/youtube-dl/youtube_dl/compat.py", line 2644, 
in compat_parse_qs
  File "/usr/local/bin/youtube-dl/youtube-dl/youtube_dl/compat.py", line 2614, 
in _parse_qsl
AttributeError: 'bool' object has no attribute 'split'

# uname -a
Linux pcname 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u3 (2019-06-16) x86_64 
GNU/Linux

# ls -l /lib/*/libc.so.6
lrwxrwxrwx 1 root root 12 Feb  6  2019 /lib/x86_64-linux-gnu/libc.so.6 -> 
libc-2.24.so

# apt show libc6 | grep ^Version
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Version: 2.24-11+deb9u4

# reportbug --template -T none -s none -S normal -b --list-cc none -q youtube-dl
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 44, in <module>
    from reportbug import utils
ModuleNotFoundError: No module named 'reportbug'

Reply via email to