LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-14-2023, 06:14 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,415

Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
yt-dlp Updating


It says to use yt-dlp -U. I tried
Code:
bash-5.1$ sudo yt-dlp -U
Password: 
Latest version: 2023.03.04, Current version: 2022.05.18
Traceback (most recent call last):
  File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/bin/yt-dlp/__main__.py", line 16, in <module>
  File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 881, in main
  File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 855, in _real_main
  File "/usr/local/bin/yt-dlp/yt_dlp/update.py", line 107, in run_update
  File "/usr/local/bin/yt-dlp/yt_dlp/update.py", line 79, in calc_sha256sum
IsADirectoryError: [Errno 21] Is a directory: '/usr/local/bin'
I put yt-dlp in my homedir and tried there. I tried as user root. Same error. Anybody got a quick fix? On Slackware64-15.0 here.
 
Old 04-14-2023, 11:53 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,146

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
I'd assume the the -U option is for when you got it from the website. Mine came from my distro and it's the current 2023.03.04. Where did yours come from? Perhaps the question should have been put in the Slackware area.
 
Old 04-14-2023, 12:07 PM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,147
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Go get the latest manually. Is that what you did?
https://github.com/yt-dlp/yt-dlp

Platform-independent zipimport binary. Needs Python (recommended for Linux/BSD)
https://github.com/yt-dlp/yt-dlp/rel...ownload/yt-dlp

Linux standalone x64 binary
https://github.com/yt-dlp/yt-dlp/rel...d/yt-dlp_linux

Linux standalone armv7l (32-bit) binary
https://github.com/yt-dlp/yt-dlp/rel...p_linux_armv7l

Linux standalone aarch64 (64-bit) binary
https://github.com/yt-dlp/yt-dlp/rel..._linux_aarch64

yt-dlp does not have too many depends. Get the latest, and use it. I've never tried to let yt-dlp update itself. I don't want python anything installing stuff outside of the package manager.
 
Old 04-14-2023, 12:18 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,147
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Code:
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o yt-dlp_test                                                     
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                                                               
                                 Dload  Upload   Total   Spent    Left  Speed                                                                                 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2682k  100 2682k    0     0  4297k      0 --:--:-- --:--:-- --:--:-- 4297k

python ./yt-dlp_test -F https://m.youtube.com/watch?v=_aG2-saqllc
[youtube] Extracting URL: https://m.youtube.com/watch?v=_aG2-saqllc
[youtube] _aG2-saqllc: Downloading webpage
[youtube] _aG2-saqllc: Downloading android player API JSON
[youtube] _aG2-saqllc: Downloading player 36754c51
[info] Available formats for _aG2-saqllc:
ID  EXT   RESOLUTION FPS CH │   FILESIZE   TBR PROTO │ VCODEC        VBR ACODEC      ABR ASR MORE INFO
────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb2 mhtml 48x27        0    │                  mhtml │ images                                storyboard
sb1 mhtml 80x45        0    │                  mhtml │ images                                storyboard
sb0 mhtml 160x90       0    │                  mhtml │ images                                storyboard
599 m4a   audio only      2 │    6.15MiB   31k dash  │ audio only        mp4a.40.5   31k 22k ultralow, m4a_dash
600 webm  audio only      2 │    6.95MiB   35k dash  │ audio only        opus        35k 48k ultralow, webm_dash
139 m4a   audio only      2 │    9.74MiB   49k dash  │ audio only        mp4a.40.5   49k 22k low, m4a_dash
249 webm  audio only      2 │   10.15MiB   51k dash  │ audio only        opus        51k 48k low, webm_dash
250 webm  audio only      2 │   13.25MiB   66k dash  │ audio only        opus        66k 48k low, webm_dash
140 m4a   audio only      2 │   25.85MiB  129k dash  │ audio only        mp4a.40.2  129k 44k medium, m4a_dash
251 webm  audio only      2 │   23.66MiB  118k dash  │ audio only        opus       118k 48k medium, webm_dash
17  3gp   176x144      8  1 │   12.41MiB   62k https │ mp4v.20.3     62k mp4a.40.2    0k 22k 144p
597 mp4   256x144     15    │    4.87MiB   24k dash  │ avc1.4d400b   24k video only          144p, mp4_dash
598 webm  256x144     15    │    4.67MiB   23k dash  │ vp9           23k video only          144p, webm_dash
160 mp4   256x144     30    │    8.08MiB   40k dash  │ avc1.4d400c   40k video only          144p, mp4_dash
278 webm  256x144     30    │    8.36MiB   42k dash  │ vp9           42k video only          144p, webm_dash
133 mp4   426x240     30    │   17.12MiB   86k dash  │ avc1.4d4015   86k video only          240p, mp4_dash
242 webm  426x240     30    │   13.32MiB   67k dash  │ vp9           67k video only          240p, webm_dash
134 mp4   640x360     30    │   32.62MiB  163k dash  │ avc1.4d401e  163k video only          360p, mp4_dash
18  mp4   640x360     30  2 │   50.83MiB  255k https │ avc1.42001E  255k mp4a.40.2    0k 44k 360p
243 webm  640x360     30    │   24.01MiB  120k dash  │ vp9          120k video only          360p, webm_dash
135 mp4   854x480     30    │   54.35MiB  272k dash  │ avc1.4d401f  272k video only          480p, mp4_dash
244 webm  854x480     30    │   38.63MiB  193k dash  │ vp9          193k video only          480p, webm_dash
22  mp4   1280x720    30  2 │ ~129.26MiB  632k https │ avc1.64001F  632k mp4a.40.2    0k 44k 720p
136 mp4   1280x720    30    │  100.60MiB  504k dash  │ avc1.64001f  504k video only          720p, mp4_dash
247 webm  1280x720    30    │   77.23MiB  387k dash  │ vp9          387k video only          720p, webm_dash
298 mp4   1280x720    60    │  131.61MiB  659k dash  │ avc1.640020  659k video only          720p60, mp4_dash
302 webm  1280x720    60    │   97.27MiB  487k dash  │ vp9          487k video only          720p60, webm_dash
299 mp4   1920x1080   60    │  241.79MiB 1211k dash  │ avc1.64002a 1211k video only          1080p60, mp4_dash
303 webm  1920x1080   60    │  143.00MiB  716k dash  │ vp9          716k video only          1080p60, webm_dash
308 webm  2560x1440   60    │  356.32MiB 1785k dash  │ vp9         1785k video only          1440p60, webm_dash
 
Old 04-14-2023, 01:35 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,415

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
Thanks, teckk. That sorted it. I wonder why the update didn't work?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Android DLP projector doubles as a mobile hotspot LXer Syndicated Linux News 0 07-09-2014 03:40 PM
LXer: TI DLP chipset targets 3D imaging devices, runs Linux LXer Syndicated Linux News 0 05-15-2013 10:20 AM
LXer: Configure An Email Gateway With Scrollout F1 Anti-Spam & DLP LXer Syndicated Linux News 0 07-23-2012 02:11 PM
LXer: TI ships Linux-ready DLP eval module for pico projectors LXer Syndicated Linux News 0 01-26-2012 04:10 PM
46" Samsung DLP Screen displays as 50" - Can't see the whole screen! magnet-o Linux - Newbie 2 02-08-2011 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration