LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-15-2023, 01:35 AM   #16
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Original Poster
Rep: Reputation: 7

[QUOTE=Tonus;6458826]
Quote:
Originally Posted by glupa4e View Post
hello, i tried SlackBuild from https://slackbuilds.org/repository/1...outube-dl-gui/
/QUOTE]
That the gui (graphic user interface), not the core software just a frontend.

I suggest you try to change what bigbadaboum advised.

A simple tool that makes things easier is sbopkg : https://sbopkg.org
Hello Tonus,
i was using youtube-dl for years but suddenly for me it was not possible to use it anymore. That is why i had to change to yt-dlp.

I have isntalled the gui for youtube-dl but i get some Status Warning (and download process stops i do not know the reason), when i try to download the needed video.

i tried to look into the logs:
Code:
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
ERROR: Signature extraction failed: Traceback (most recent call last):
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
WARNING: unable to download video info webpage: HTTP Error 410: Gone
###############

@bigbadaboum
very helpful and kind of you, i was trying all of that but unfortunately getting again some missing or wrongly named folders, i was trying to trace until it was possible for me but couldn't not compile it at all in the end

i even switched to 15.0 SBo (slackbuilds repository for sbo) but there yt-dlp is not available. when i tried there an older version, i got some error that encoding is missing

Code:
running build_scripts
creating build/scripts-3.9
Traceback (most recent call last):
  File "/usr/lib64/python3.9/tokenize.py", line 330, in find_cookie
    line_string = line.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 14: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/SBo/yt-dlp/setup.py", line 175, in <module>
    main()
  File "/tmp/SBo/yt-dlp/setup.py", line 136, in main
    setup(
  File "/usr/lib64/python3.9/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.9/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib64/python3.9/distutils/command/install.py", line 546, in run
    self.run_command('build')
  File "/usr/lib64/python3.9/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib64/python3.9/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python3.9/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib64/python3.9/distutils/command/build_scripts.py", line 50, in run
    self.copy_scripts()
  File "/usr/lib64/python3.9/distutils/command/build_scripts.py", line 82, in copy_scripts
    encoding, lines = tokenize.detect_encoding(f.readline)
  File "/usr/lib64/python3.9/tokenize.py", line 381, in detect_encoding
    encoding = find_cookie(second)
  File "/usr/lib64/python3.9/tokenize.py", line 335, in find_cookie
    raise SyntaxError(msg)
SyntaxError: invalid or missing encoding declaration for 'yt-dlp'

i was thinking now of merely getting a compiled .txz. from some repository and tried, not sure if it will work

Last edited by glupa4e; 10-15-2023 at 01:37 AM.
 
Old 10-15-2023, 02:46 AM   #17
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 640

Rep: Reputation: 488Reputation: 488Reputation: 488Reputation: 488Reputation: 488
Code:
wget -c https://github.com/jely2002/youtube-dl-gui/releases/download/v2.4.0/Open-Video-Downloader-2.4.0.AppImage
chmod +x  Open-Video-Downloader-2.4.0.AppImage
./Open-Video-Downloader-2.4.0.AppImage
Is it working?
 
Old 10-15-2023, 05:31 AM   #18
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by rizitis View Post
Code:
wget -c https://github.com/jely2002/youtube-dl-gui/releases/download/v2.4.0/Open-Video-Downloader-2.4.0.AppImage
chmod +x  Open-Video-Downloader-2.4.0.AppImage
./Open-Video-Downloader-2.4.0.AppImage
Is it working?
it gives me following error (for privacy reasons, some strings are changed)
Code:
{
  "errno": "ENOENT",
  "code": "ENOENT",
  "syscall": "spawn /home/user/.youtube-dl-gui/yt-dlp-unix",
  "path": "/home/user/.youtube-dl-gui/yt-dlp-unix",
  "spawnargs": [
    "-J",
    "--flat-playlist",
    "--no-cache-dir",
    "--ignore-config",
    "--user-agent",
    "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36",
    "--no-check-certificate",
    "--yes-playlist",
    "https://www.youtube.com/watch?v=videoid"
  ],
  "originalMessage": "spawn /home/user/.youtube-dl-gui/yt-dlp-unix ENOENT",
  "shortMessage": "Command failed with ENOENT: /home/user/.youtube-dl-gui/yt-dlp-unix -J --flat-playlist --no-cache-dir --ignore-config --user-agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 --no-check-certificate --yes-playlist https://www.youtube.com/watch?v=videoid\nspawn /home/user/.youtube-dl-gui/yt-dlp-unix ENOENT",
  "command": "/home/user/.youtube-dl-gui/yt-dlp-unix -J --flat-playlist --no-cache-dir --ignore-config --user-agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 --no-check-certificate --yes-playlist https://www.youtube.com/watch?v=videoid",
  "stdout": "",
  "stderr": "",
  "failed": true,
  "timedOut": false,
  "isCanceled": false,
  "killed": false
}
 
Old 10-15-2023, 06:46 AM   #19
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Got the very same error when trying the AppImage version that rizitis suggested (2.4.0). However, the latest version (2.5.4) started just fine (even if there were some ENOENT error messages in the terminal window).

When trying to download I got the message
Code:
ERROR: Postprocessing: module mutagen was not found. Please install using `python -m pip install mutagen
Built and installed mutagen (SBo script https://slackbuilds.org/repository/1...pment/mutagen/) and downloading worked perfectly (Please note that mutagen has two dependencies which in turn have a number of dependencies).

Latest AppImage: https://github.com/StefanLobbenmeier...2.5.4.AppImage

NB: you might run into other dependency issues running Slackware-14.2. I strongly recommend upgrading to 15.0, especially since EOL for 14.2 is round the corner.

Last edited by kgha; 10-16-2023 at 02:52 AM.
 
1 members found this post helpful.
Old 10-15-2023, 12:06 PM   #20
bigbadaboum
Member
 
Registered: Apr 2023
Posts: 143

Rep: Reputation: 55
Hello glupa4e,

maybe an update broke something on your system, can you recompile your yt-dlp-2023.02.17 ?

nb:it's sad that we can no longer have access to x265 video since the switch to android api inside yt-dlp, it was a good way to promote the Alliance for Open Media.
https://aomedia.org/
 
Old 10-16-2023, 05:04 AM   #21
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,315

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
With all these protracted issues, you would probably be much better off uninstalling yt-dlp and reinstalling it. Pip3 installs automagically, if you clean up correctly.

I'm somehow suspicious that every way you try to build or install pukes, and you may have problems with your toolchain.

Last edited by business_kid; 10-16-2023 at 05:08 AM.
 
Old 10-22-2023, 01:19 PM   #22
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by kgha View Post
Got the very same error when trying the AppImage version that rizitis suggested (2.4.0). However, the latest version (2.5.4) started just fine (even if there were some ENOENT error messages in the terminal window).

When trying to download I got the message
Code:
ERROR: Postprocessing: module mutagen was not found. Please install using `python -m pip install mutagen
Built and installed mutagen (SBo script https://slackbuilds.org/repository/1...pment/mutagen/) and downloading worked perfectly (Please note that mutagen has two dependencies which in turn have a number of dependencies).

Latest AppImage: https://github.com/StefanLobbenmeier...2.5.4.AppImage

NB: you might run into other dependency issues running Slackware-14.2. I strongly recommend upgrading to 15.0, especially since EOL for 14.2 is round the corner.

hello, i installed yt-dlp-2023.02.17 and also have mutagen and all needed dependencies as far as i know. even with version https://github.com/StefanLobbenmeier...2.5.4.AppImage i get error


Code:
/tmp/.mount_Open-VGvJlHg/open-video-downloader.bin: symbol lookup error: /tmp/.mount_Open-VGvJlHg/open-video-downloader.bin: undefined symbol: gbm_bo_get_modifier
 
Old 10-22-2023, 03:23 PM   #23
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Could you fire up a virtual machine of a clean and up-to-date 14.2 ?
I guess it would be easier to get the dependencies installed and the package built.
You could then install it on your actual system.

And what you would have learnt would be useful forever
 
Old 10-23-2023, 05:23 AM   #24
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,315

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
I solved the problem for myself (in 15.0), because my git binary was out of date and I had some ancient pip install.

Code:
rm /usr/local/bin/yt-dlp
pip3 uninstall yt-dlp
pip3 install yt-dlp
The install drops a script in /usr/bin
Code:
dec@Ebony:~$yt-dlp --version
2023.10.13
 
Old 10-24-2023, 07:10 PM   #25
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
Ya dont need a SlackBuild to install and maintain yt-dlp!

Just install it from the command line using the simple instructions.
https://github.com/yt-dlp/yt-dlp/wiki/Installation

Of course you don't need candyass "sudo" either or a note from your mom to
use su - .

You may find it quits working from time to time and must be
reinstalled, also easy enough, no need to futz around with slackbuilds.

Not that I dont like or appreciate Slackbuilds.
But for simple stuff they can be a smokescreen and an
unnecessary level of complexity.

Last edited by Regnad Kcin; 10-24-2023 at 07:12 PM.
 
2 members found this post helpful.
Old 10-30-2023, 04:04 PM   #26
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by Regnad Kcin View Post
Ya dont need a SlackBuild to install and maintain yt-dlp!

Just install it from the command line using the simple instructions.
https://github.com/yt-dlp/yt-dlp/wiki/Installation

Of course you don't need candyass "sudo" either or a note from your mom to
use su - .

You may find it quits working from time to time and must be
reinstalled, also easy enough, no need to futz around with slackbuilds.

Not that I dont like or appreciate Slackbuilds.
But for simple stuff they can be a smokescreen and an
unnecessary level of complexity.
thanks, after fighting so long , perhaps now i have a workaround by running

Code:
/usr/local/bin/yt-dlp
 
Old 10-31-2023, 09:40 PM   #27
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
it should be in the path and work like this.
Quote:
yt-dlp https://www.youtube.com/watch?v=t7q9cOaUUUI
ffmpeg Dengue\ Fever\ -\ Uku\ \(Live\ on\ KEXP\)\ \[t7q9cOaUUUI\].webm dengue_fever_uku.mp3
play dengue_fever_uku.mp3
 
Old 11-01-2023, 06:01 AM   #28
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,315

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
/usr/local/bin should be in the $PATH.

On Slackware-14.2, the $PATH should be set in /etc/profile
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
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 - Distributions > Slackware

All times are GMT -5. The time now is 08:44 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