Packages updating : frustration package obsolete qua function

sudo pkg upgrade yt-dlp
Updating FreeBSD repository catalogue…
Fetching packagesite.pkg: 100% 6 MiB 6.8MB/s 00:01
Processing entries: 100%
FreeBSD repository update completed. 32394 packages processed.
All repositories are up to date.
Checking integrity… done (0 conflicting)
Your packages are up to date.

[download] Downloading video 1 of 2246
[youtube] GER-j6mTs0U: Downloading webpage
[youtube] GER-j6mTs0U: Downloading android player API JSON
ERROR: [youtube] GER-j6mTs0U: Unable to extract uploader id; please report this issue on Issues · yt-dlp/yt-dlp · GitHub , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

l> yt-dlp -U
Latest version: 2023.02.17, Current version: 2022.11.11
ERROR: Please use the command ‘pkg upgrade yt-dlp’ to upgrade.

This is not a NomadBSD problem but a FreeBSD one.
The port www/yt-dlp is update at the last version in the port collection.
You can simply wait that the port is update in the pkg collection or compile the port yourself learning how at Using the Ports Collection

Regards
Maurizio

1 Like

Yt download is not working because dependency PhantomJS is a deprecated project. As said in previous comment it does not work on FreeBSD or GhostBSD either.

I think I will have to go that route, I’ll take the time to study but will probably do that not on my main machine, for now.

The problem is software engineering is becoming a lost art. The number of fallouts on the ports pages is worrysome if not telling.
The issue would have been easy if I could implement a one line change like this : [extractor/youtube] Fix `uploader_id` extraction · yt-dlp/yt-dlp@149eb0b · GitHub
But I can’t edit this file (N.B. all the others pythons are friendly text files)
@NomadBSD ~> cd /usr/local/bin
@NomadBSD /u/l/bin> file youtube-dl
youtube-dl: a /usr/local/bin/python3.9 script executable (binary data)
And I expected a script to be readable, doh (Script Definition & Meaning - Merriam-Webster) and a temporary quick fix by editing…
When in a hurry, reading this compilation - How to compile python script to binary executable - Stack Overflow convinces me we live in a messed up timeline :wink:

1 Like

If you need to download video from YT, you can use Easy YouTube Video Downloader as firefox extension. In my experience it work very well.

Updated yesterday with latest version, functions again :upside_down_face: mpe@NomadBSD ~> youtube-dl --version
2021.12.17

This is not a problem from BSD. YT-dlp didn’t work on Linux nor Haiku OS either. It must be probably a general problem with the developers.