Bug report: 429, then can't reinstall #25320

Closed
opened 2026-02-21 13:45:14 -05:00 by deekerman · 4 comments
Owner

Originally created by @beesuns on GitHub (Jun 16, 2022).

I am using Kali Linux

uname -a 
Linux kali 5.17.0-kali3-amd64 #1 SMP PREEMPT Debian 5.17.11-1kali1 (2022-05-30) x86_64 GNU/Linux
uname -m                                                                                                                                                 
x86_64

I was using youtbe-dl to download something, it says:

youtube-dl --proxy="http://127.0.0.1:7890" --yes-playlist -i https://youtu.be/ilw-qmqZ5zY?list=RDMDt1Ed_Qwlo --verbose
[debug] System config: ['--proxy', 'http://127.0.0.1:8889/', '-o', '/home/xxx/Videos/%(title)s.%(ext)s']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--proxy=http://127.0.0.1:7890', '--yes-playlist', '-i', 'https://youtu.be/ilw-qmqZ5zY?list=RDMDt1Ed_Qwlo', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.10.4 (CPython) - Linux-5.17.0-kali3-amd64-x86_64-with-glibc2.33
[debug] exe versions: ffmpeg 4.4.2-1, ffprobe 4.4.2-1
[debug] Proxy map: {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'}
[youtube:tab] Downloading playlist RDMDt1Ed_Qwlo - add --no-playlist to just download video ilw-qmqZ5zY
[youtube:tab] RDMDt1Ed_Qwlo: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by <HTTPError 429: 'Too Many Requests'>); please report this issue on https://yt-dl.org/b to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 634, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2288, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 749, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

I tried to remove youtube-dl using

sudo apt remove youtube-dl                                                                                                                                  
[sudo] password for xiaoxn: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'youtube-dl' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Then I run

youtube-dl --version                                                                                                                                        
2021.12.17

It seemed that I can not remove youtube-dl and I can not use it either.

Originally created by @beesuns on GitHub (Jun 16, 2022). I am using Kali Linux ``` uname -a Linux kali 5.17.0-kali3-amd64 #1 SMP PREEMPT Debian 5.17.11-1kali1 (2022-05-30) x86_64 GNU/Linux ``` ``` uname -m x86_64 ``` I was using youtbe-dl to download something, it says: ``` youtube-dl --proxy="http://127.0.0.1:7890" --yes-playlist -i https://youtu.be/ilw-qmqZ5zY?list=RDMDt1Ed_Qwlo --verbose [debug] System config: ['--proxy', 'http://127.0.0.1:8889/', '-o', '/home/xxx/Videos/%(title)s.%(ext)s'] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--proxy=http://127.0.0.1:7890', '--yes-playlist', '-i', 'https://youtu.be/ilw-qmqZ5zY?list=RDMDt1Ed_Qwlo', '--verbose'] [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8 [debug] youtube-dl version 2021.12.17 [debug] Python version 3.10.4 (CPython) - Linux-5.17.0-kali3-amd64-x86_64-with-glibc2.33 [debug] exe versions: ffmpeg 4.4.2-1, ffprobe 4.4.2-1 [debug] Proxy map: {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'} [youtube:tab] Downloading playlist RDMDt1Ed_Qwlo - add --no-playlist to just download video ilw-qmqZ5zY [youtube:tab] RDMDt1Ed_Qwlo: Downloading webpage ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by <HTTPError 429: 'Too Many Requests'>); please report this issue on https://yt-dl.org/b to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 634, in _request_webpage return self._downloader.urlopen(url_or_request) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2288, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/usr/lib/python3.10/urllib/request.py", line 525, in open response = meth(req, response) File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response response = self.parent.error( File "/usr/lib/python3.10/urllib/request.py", line 557, in error result = self._call_chain(*args) File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain result = func(*args) File "/usr/lib/python3.10/urllib/request.py", line 749, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/usr/lib/python3.10/urllib/request.py", line 525, in open response = meth(req, response) File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response response = self.parent.error( File "/usr/lib/python3.10/urllib/request.py", line 563, in error return self._call_chain(*args) File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain result = func(*args) File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) ``` I tried to remove youtube-dl using ``` sudo apt remove youtube-dl [sudo] password for xiaoxn: Reading package lists... Done Building dependency tree... Done Reading state information... Done Package 'youtube-dl' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ``` Then I run ``` youtube-dl --version 2021.12.17 ``` It seemed that I can not remove youtube-dl and I can not use it either.
Author
Owner

@dirkf commented on GitHub (Jun 17, 2022):

Regarding HTTP error 429, see pinned issue #23638.

To get a working up-to-date yt-dl, do something like this:

  • sudo rm -r /usr/local/bin/youtube-dl
  • python3 -m pip install 'https://github.com/ytdl-org/youtube-dl/archive/refs/heads/master.tar.gz'
@dirkf commented on GitHub (Jun 17, 2022): Regarding HTTP error 429, see pinned issue #23638. To get a working up-to-date yt-dl, do something like this: * `sudo rm -r /usr/local/bin/youtube-dl` * `python3 -m pip install 'https://github.com/ytdl-org/youtube-dl/archive/refs/heads/master.tar.gz'`
Author
Owner

@gamer191 commented on GitHub (Jun 17, 2022):

sudo rm -r /usr/local/bin/youtube-dl

best not to use rm commands when you don't have to. Just delete the binary (using the GUI) from /usr/local/bin/youtube-dl (or delete the whole folder)

@gamer191 commented on GitHub (Jun 17, 2022): > `sudo rm -r /usr/local/bin/youtube-dl` best not to use `rm` commands when you don't have to. Just delete the binary (using the GUI) from `/usr/local/bin/youtube-dl` (or delete the whole folder)
Author
Owner

@gamer191 commented on GitHub (Jun 17, 2022):

python3 -m pip install 'https://github.com/ytdl-org/youtube-dl/archive/refs/heads/master.tar.gz'

OP is using python 3.10, so they're better off running python3 -m pip install --update yt-dlp (after reviewing https://github.com/yt-dlp/yt-dlp#differences-in-default-behavior)

@gamer191 commented on GitHub (Jun 17, 2022): > `python3 -m pip install 'https://github.com/ytdl-org/youtube-dl/archive/refs/heads/master.tar.gz'` OP is using python 3.10, so they're better off running `python3 -m pip install --update yt-dlp` (after reviewing https://github.com/yt-dlp/yt-dlp#differences-in-default-behavior)
Author
Owner

@dirkf commented on GitHub (Jun 17, 2022):

best not to use rm commands when you don't have to. Just delete the binary (using the GUI) from /usr/local/bin/youtube-dl (or delete the whole folder)

Who says there's a GUI?

At this screen, you may wish to not install a desktop environment, then Kali Linux becomes “headless” (no graphic interface) which uses less system resources up and commonly found on servers, dropboxes, low powered ARM devices, and the cloud.

OP is using python 3.10, so they're better off running python3 -m pip install --update yt-dlp (after reviewing https://github.com/yt-dlp/yt-dlp#differences-in-default-behavior)

That's entirely a matter for OP, though it would save us having to deal with the 429 issue.

@dirkf commented on GitHub (Jun 17, 2022): >best not to use rm commands when you don't have to. Just delete the binary (using the GUI) from /usr/local/bin/youtube-dl (or delete the whole folder) Who says there's a GUI? >[At this screen, you may wish to not install a desktop environment, then Kali Linux becomes “headless” (no graphic interface) which uses less system resources up and commonly found on servers, dropboxes, low powered ARM devices, and the cloud.](https://www.kali.org/docs/introduction/what-image-to-download/#which-desktop-environment-and-software-collection-to-choose-during-installation) >OP is using python 3.10, so they're better off running python3 -m pip install --update yt-dlp (after reviewing https://github.com/yt-dlp/yt-dlp#differences-in-default-behavior) That's entirely a matter for OP, though it would save us having to deal with the 429 issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#25320
No description provided.