yt-dlp crashed in MX19.4 making clipgrab no longer work.

Message
Author
User avatar
siamhie
Global Moderator
Posts: 3219
Joined: Fri Aug 20, 2021 5:45 pm

Re: yt-dlp crashed in MX19.4 making clipgrab no longer work.

#21 Post by siamhie »

pianokeyjoe wrote: Thu Aug 29, 2024 10:54 pm Ok... Here is my terminal output again with the suggestion of @siamhie and the yt-dlp 33mb version suggested by @Stevo

Is the yt-dlp version newer than this 2023.07.06?

[Announcement] Dropping support for Python 3.7


yt-dlp 2023.09.24 (and newer) minimum recommended Python version has been raised to 3.8
Since Python 3.7 has reached end-of-life, support for it will be dropped soon.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
Stevo
Developer
Posts: 14425
Joined: Fri Dec 15, 2006 7:07 pm

Re: yt-dlp crashed in MX19.4 making clipgrab no longer work.

#22 Post by Stevo »

There is a "video downloader helper" Firefox extension that also works great on MX 23, but I get a feeling that the deb of its required helper app may also require newer libraries than what Buster can provide.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
pianokeyjoe
Posts: 420
Joined: Thu Jan 31, 2019 11:08 am

Re: yt-dlp crashed in MX19.4 making clipgrab no longer work.

#23 Post by pianokeyjoe »

Thanks to all you guys for trying to help with this issue. For what it's worth, seems, this issue will not be solvable save I upgrade my OS since it is due to outdated python libraries and Clipgrab pulls the latest yt-dlp everytime the app is started soo...? Yeah, I am hosed. If there should be another way, I all ears though! I do not know if there is a app image or flatpak that contains a full self contained clipgrab with yt-dlp environment that even has the required dependencies in the same folder as the app to make things "just work" like a portable app in Windows XP. If there is? I want it!
Pianokeyjoe
Intel i5 3.10ghz ,8GB ram, Intel onboard everything, 500GB HDD, MX-LINUX 19.3 :penguin:

User avatar
siamhie
Global Moderator
Posts: 3219
Joined: Fri Aug 20, 2021 5:45 pm

Re: yt-dlp crashed in MX19.4 making clipgrab no longer work.

#24 Post by siamhie »

pianokeyjoe wrote: Mon Sep 09, 2024 6:16 pm If there should be another way, I all ears though!

You could try what I posted in comment #11. Just open your terminal to the directory you save your videos to.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
pianokeyjoe
Posts: 420
Joined: Thu Jan 31, 2019 11:08 am

Re: yt-dlp crashed in MX19.4 making clipgrab no longer work.

#25 Post by pianokeyjoe »

siamhie wrote: Mon Sep 09, 2024 9:14 pm
pianokeyjoe wrote: Mon Sep 09, 2024 6:16 pm If there should be another way, I all ears though!

You could try what I posted in comment #11. Just open your terminal to the directory you save your videos to.
Hi @siamhie I did what you suggested and I did post my terminal error results a few comments back. Seems even in the terminal, the yt-dlp looks for python 3.8 but 3.7 is installed and can not be upgraded. But here is another terminal output in case you did not see it before:

Code: Select all

$ yt-dlp -f 136+140 https://www.youtube.com/watch?v=r2Zwclq24Vk /home/linux/Videos/
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/bin/yt-dlp/__main__.py", line 14, in <module>
  File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 5, in <module>
ImportError: You are using an unsupported version of Python. Only Python versions 3.8 and above are supported by yt-dlp
Pianokeyjoe
Intel i5 3.10ghz ,8GB ram, Intel onboard everything, 500GB HDD, MX-LINUX 19.3 :penguin:

User avatar
siamhie
Global Moderator
Posts: 3219
Joined: Fri Aug 20, 2021 5:45 pm

Re: yt-dlp crashed in MX19.4 making clipgrab no longer work.

#26 Post by siamhie »

pianokeyjoe wrote: Tue Sep 10, 2024 5:33 pm Hi @siamhie I did what you suggested and I did post my terminal error results a few comments back.

Have you tried version 2023.07.06-1~mx19+1 that comes with MX-19?

yt-dlp 2023.09.24 and newer now require Python 3.8 per this announcement.
[Announcement] Dropping support for Python 3.7 #7803
yt-dlp.png
You do not have the required permissions to view the files attached to this post.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Stuart_M
Posts: 690
Joined: Wed Aug 07, 2019 7:10 pm

Re: yt-dlp crashed in MX19.4 making clipgrab no longer work.

#27 Post by Stuart_M »

I only use MX-19.4 (Xfce) and I have no problems at all using yt-dlp to download YouTube videos. It's just as fast and error-free today as it was years ago.

I only use the Terminal to run yt-dlp, which is currently at version 2023.07.06-1~mx19+1 on my MX-19 installation. That package came from the MX Package Installer (MXPI) "Enabled Repos". Also, my MX-19 installation is currently using python3.7 (3.7.3-2+deb10u7).

As a test I used the same command that "pianokeyjoe" used according to his Posts #20 and #25 where he was unable to download a video due to an ImportError that stated it required the use of Python v3.8 and above. That error does not occur for me and the YouTube video downloaded and plays just fine. Again, my MX-19.4 has Python v3.7 installed (by default or upgraded through the normal system upgrades that occurred up until 30 June 2024).

The below code window shows that same command that "pianokeyjoe" used along with its output. It took all of about a second to download (my Internet receive speed is 300 Mb/s).

Code: Select all

yt-dlp -f 136+140 https://www.youtube.com/watch?v=r2Zwclq24Vk
[youtube] Extracting URL: https://www.youtube.com/watch?v=r2Zwclq24Vk
[youtube] r2Zwclq24Vk: Downloading webpage
[youtube] r2Zwclq24Vk: Downloading ios player API JSON
[youtube] r2Zwclq24Vk: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...
[youtube] r2Zwclq24Vk: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (2/3)...
[youtube] r2Zwclq24Vk: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (3/3)...
[youtube] r2Zwclq24Vk: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: 'Bad Request'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
[youtube] r2Zwclq24Vk: Downloading player 5f8f5b0f
WARNING: [youtube] r2Zwclq24Vk: nsig extraction failed: You may experience throttling for some formats
         n = UfQ9cfeM2g69hkpfJ ; player = https://www.youtube.com/s/player/5f8f5b0f/player_ias.vflset/en_US/base.js
WARNING: [youtube] r2Zwclq24Vk: nsig extraction failed: You may experience throttling for some formats
         n = ACF5g0u_siVlLFB_2 ; player = https://www.youtube.com/s/player/5f8f5b0f/player_ias.vflset/en_US/base.js
[youtube] r2Zwclq24Vk: Downloading m3u8 information
[info] r2Zwclq24Vk: Downloading 1 format(s): 136+140
[download] Destination: From Monsters Are EATING People | Season 3 [r2Zwclq24Vk].f136.mp4
[download] 100% of   31.58MiB in 00:00:01 at 23.72MiB/s
[download] Destination: From Monsters Are EATING People | Season 3 [r2Zwclq24Vk].f140.m4a
[download] 100% of   11.12MiB in 00:00:01 at 8.82MiB/s
[Merger] Merging formats into "From Monsters Are EATING People | Season 3 [r2Zwclq24Vk].mp4"
Deleting original file From Monsters Are EATING People | Season 3 [r2Zwclq24Vk].f136.mp4 (pass -k to keep)
Deleting original file From Monsters Are EATING People | Season 3 [r2Zwclq24Vk].f140.m4a (pass -k to keep)

And by the way, all those warning lines on the output of that command had no ill effects on the downloaded video - it plays fine.

User avatar
siamhie
Global Moderator
Posts: 3219
Joined: Fri Aug 20, 2021 5:45 pm

Re: yt-dlp crashed in MX19.4 making clipgrab no longer work.

#28 Post by siamhie »

Stuart_M wrote: Tue Sep 10, 2024 8:43 pm I only use the Terminal to run yt-dlp, which is currently at version 2023.07.06-1~mx19+1 on my MX-19 installation.
@pianokeyjoe is trying to use a newer version of yt-dlp and it will not work in MX-19.
He is going to have to stay with version 2023.07.06 until he updates to a newer version of MX.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
pianokeyjoe
Posts: 420
Joined: Thu Jan 31, 2019 11:08 am

Re: yt-dlp crashed in MX19.4 making clipgrab no longer work.

#29 Post by pianokeyjoe »

So, I did uninstall the latest version of yt-dlp, clipgrab and then reinstalled version 2023.07.06-1~mx19+1 and synaptic reported everything installed successfully(reinstalled the clipgrab from the MX19 repos as well). But I am still getting this error. Which is why I am confused as to why it still reports I need a newer version of python than 3.7. Is there a way to check the version of yt-dlp in the terminal? Or a log file? I only see Clipgrab as pulling yt-dlp latest but it is into it's own folders, and not the system itself. I have searched all over my hard drive and can not find where the system wide yt-dlp is even installed. I am out of clues.
Pianokeyjoe
Intel i5 3.10ghz ,8GB ram, Intel onboard everything, 500GB HDD, MX-LINUX 19.3 :penguin:

User avatar
pianokeyjoe
Posts: 420
Joined: Thu Jan 31, 2019 11:08 am

Re: yt-dlp crashed in MX19.4 making clipgrab no longer work.

#30 Post by pianokeyjoe »

I am including a screenshot of my MXPI enabled repos where yt-dlp is installed in my system. As I said, I installed the MX19 version of yt-dlp, but that python error persists.
Image

Again, this is a situation that one day clipgrab stopped working and yt-dlp in my system was suddenly reporting an unsupported python library error. I tried the latest version standalone binary in clipgrab but that only brought me to the same error and no files found error in clipgrab.
Pianokeyjoe
Intel i5 3.10ghz ,8GB ram, Intel onboard everything, 500GB HDD, MX-LINUX 19.3 :penguin:

Post Reply

Return to “Older Versions”