/usr/bin/env: ‘python’: No such file or directory
Okay, the script can't deal with "python" vs "python3", whatever - I'll change the script's first line and move on. Next attempt: $ youtube-dl https://www.youtube.com/watch?v=5pV8WFvSNYE
[youtube] 5pV8WFvSNYE: Downloading webpage
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug. Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
I knew I would get this error because I got it two weeks ago already. And considering that the version number is `2021.12.17` that looks suspiciously close to a dead project, or at least for a project whose very description is "download videos from youtube.com or other video platforms".Edit: I went through the repo and found that this bug has been reported two months ago [2]. I understand that the project is not dead in the sense that they are still looking at bugs, but if a major feature is not working for two months now then I think it's reasonable for people's faith in the project's future to be shaken.
I you need python3 the you need to put python3 in the shebang
iirc. homebrew on OSX installs python as a python3 executable, no python exeutable.
Hopefully no-one should support python v2 in 2023 ?
$ file /usr/bin/python
/usr/bin/python: symbolic link to python3
I think this is by default, I don't remember doing anything special in my setup. `python2` exists for packages still needing python 2.7 et al.Then when that program is packaged for other distros, you get this error.
Not a huge deal by any means, but the non-standard behavior can add a bit of friction.
I expect this has filtered down to RHEL9 now.
Multiple version are supported with "python2.7", "python3.9" etc. if a version older than the current default is required.
Your install is not configured properly. This is a googleable fix. (One example is to use `which python3` as part of your command https://stackoverflow.com/a/73610228)
> ERROR: Unable to extract uploader id;
This is a known bug and already has a fix but has not been packaged or released for youtube-dl but you can fix it yourself or use a different pacakge. https://github.com/ytdl-org/youtube-dl/issues/31530
That link above as it is presently ... issues/31530 ... lists the following as the fix, below - https://github.com/ytdl-org/youtube-dl/issues/31530#issuecom...
Now my problem is I'm not running Win 13 or the latest linux distro but still I have the best up to date browser I've yet to find that runs on my old system ... and that link does nothing ... if I put the link in another it simply opens back at the top of the parent.
I figure I could copy every recent file one by one from the git repo and play at fooling with my own, but since someone commenting on this topic actually compiled the given source - only to land some old 2021 problem - sigh.
Now I have flipped though what I see in the above ... no fix info ... fucked and bye bye time. The next option touted as the fix sadly does not run on my old system, it could work with the online server but ... how long until ...
It is of course easier for people like me who are no longer or were ever competent programmers, let alone being well versed in python, to pick some other program - I've been told such as IDM will handle youtube antics fine as well as being compatible with older systems, so it may well be worthwhile to purchase a copy.
Oh well youtube-dl .. thanks for the fish.
There's a reply made to the current thread here which, to me anyhow, means the listed full source code at github has not been updated.
There are updated individual components - however it's been in the order of 16 years I've decompiled and adjusted and recompiled. It might be worth the effort ... if only youtube-dl was going to keep on sailing onwards. The nah moving to something else commentary informs me that sooner or later updates will probably get slower until such point people won't bother reporting issues - better for my old system to make the move sooner rather than later.
yt -dlp is probably relevant to the cheap online server I use with the latest python installed. I generally didn't use youtube-dl on it, unless the download was going to take some time and better to let the server accumulate it over a few hours. yt-dlp supposedly fixes the trick youtube used to try and discourage cli downloaders.
The I can't believe it's not youtube-dl quasi unofficial fork yt-dlp has a most recent stable release 2023.03.04 (last month).
Of the two one is keeping up with the month by month twists and turns of websites altering their video embed methodologies to defeat CLI rippers .. and the other one isn't.
yt-dlp still claims to keep track with the parent project. Most would use it for the additional functionalities it provides over youtube-dl.
That shim layer between the core ripping engine(s) and the manifold ways of embedding access to a stream is what is being kept current in yt-dlp releases (and -U updates).
Original most recent official youtube-dl (December 2021 release) can no longer find its update service.
You're making it very difficult to take you seriously. Have you actually used youtube-dl?
Granted, I haven't kept up on whether original youtube-dl eventually got around to getting its primary functionality to work. The several-month interregnum that definitely occurred seems like a good reason to consider it "dead".
It stopped being able to download videos from youtube. That's not the only functionality, but -- given the name of the software -- I'd say it should have been fixed. All the repo activity in the world won't balance out the inability to do the only thing you advertise that you can do.
yt-dlp is a better maintained fork.