SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
yt-dlp 2023.09.24
important changes
The minimum recommended Python version has been raised to 3.8
Since Python 3.7 has reached end-of-life https://github.com/yt-dlp/yt-dlp/issues/7803
yt-dlp 2023.09.24
important changes
The minimum recommended Python version has been raised to 3.8
Since Python 3.7 has reached end-of-life https://github.com/yt-dlp/yt-dlp/issues/7803
Hello bigbadaboum,
i did whatever you advised me to, unfortunately i am still getting the same error.
I downloaded python-3.9.28 from Slackware15 repo (although i am still using Slackware14.2) then package compiled and i installed it.
perhaps i should declare somewhere that default verrsion for python should be 3.9.18 as i have also older ones, but what will happen with other applicataions requiring those libraries, will they stop working?
or i just somehow can pass to ytp-dl script which python version to use?
I don't think the error is python related. Something is trying to apply a patch and it's failing, are there any lines in the slackbuild with the patch command in? If there are then they are probably not needed for the version you are trying to install, try removing or commenting them out.
I don't think the error is python related. Something is trying to apply a patch and it's failing, are there any lines in the slackbuild with the patch command in? If there are then they are probably not needed for the version you are trying to install, try removing or commenting them out.
Hello Ian M,
the only line i saw in .SlackBuild related to patch was
Code:
patch -p1 < $CWD/plugin_loading.diff
when i commented that out i got other errors
Code:
copying yt_dlp/compat/_deprecated.py -> build/lib/yt_dlp/compat
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 0xaf 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 176, in <module>
main()
File "/tmp/SBo/yt-dlp/setup.py", line 137, 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)
today I updated yt-dlp-2023.07.06 to yt-dlp-2023.10.07, norhing to report.
hello bigbadaboum,
please forgive my stupidity. I copied SlackBuild file unzipped it and inside i put the source you've pointed out.
When i run ./yt-dlp.Slackbuild i get error
Code:
yt-dlp-2023.10.13/.github/banner.svg
yt-dlp-2023.10.13/pyinst.py
yt-dlp-2023.10.13/Makefile
yt-dlp-2023.10.13/requirements.txt
./yt-dlp.SlackBuild: line 57: cd: yt-dlp: No such file or directory
i see that in .SlackBuild on line 57 there is command
Code:
#57 cd $PRGNAM
i was able to understand that when starting the script, following 2 folders are created in
Code:
/tmp/SBo
package-yt-dlp
yt-dlp-2023.10.13
in the versioned folder , there is a subfolder
Code:
yt-dlp-2023.10.13/yt-dlp
and i think that the error that i am getting is because that subfolder does not exist under the generic package folder
Code:
package-yt-dlp - > it is empty
even if i copy it manually and create package-yt-dlp/yt-dlp , on the next run, everything gets overriden.
can you please let me know how to get out of this crazy situation?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.