Youtube-dlg does not install in Fedora 33

Hello

Is it possible to pack youtube-dlg from Arch (AUR (en) - youtube-dl-gui-git ), passing it to .rmp for installation with all its dependencies without having to resort to other artifices?

The pip installation is not working on Fedora 33 with deepin 15.11.
It was the only application I couldn’t install in this version of Fedora 33.
I tried to follow some “step by step” here from the Forum, but without success in the installation.

The following is an error message in pip installation.

pip install youtube-dlg
Defaulting to user installation because normal site-packages is not writeable
Collecting youtube-dlg
Using cached Youtube-DLG-0.4.tar.gz (153 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-kbihrku9/youtube-dlg/setup.py’"’"’; file=’"’"’/tmp/pip-install-kbihrku9/youtube-dlg/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-6tmyeb56
cwd: /tmp/pip-install-kbihrku9/youtube-dlg/
Complete output (8 lines):
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-kbihrku9/youtube-dlg/setup.py”, line 69, in
from youtube_dl_gui import (
File “/tmp/pip-install-kbihrku9/youtube-dlg/youtube_dl_gui/init.py”, line 25
print error
^
SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(error)?
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

1 Like

While youtube-dlg is not workling for you currently, maybe the following provide an alternative:

Flathub—An app store and build service for Linux,
Flathub—An app store and build service for Linux

Or maybe you can get used the underlying program and just use youtube-dl from command line?

1 Like

Thanks for the feedback and the referrals, but it’s a personal taste and I’ve been using youtube-dlg in other distributions for a long time.
I think that because youtube-dlg works on almost all linux distributions, in my opinion it should also “work” on Fedora.
Fedora packagers could extract the youtube-dlg package from Archlinux and change it to .rmp. Anyway, maybe one day.

I’m glad there are other alternatives.

Download form here:

Install dependencies:

sudo dnf install youtube-dl ffmpeg

extract it:

ar -x youtubedl-gui_2.0-1groovy_amd64.deb

you can see a data folder and control folder which we don’t needed and doesn’t contain any interesting stuff.

now we’re focus in data folder, and stract it with nautilus, you can see the following structure:

  • usr
    • bin
    • share

Under bin you can find:

chmod +x youtubedl-gui
sudo mv youtubedl-gui /usr/local/bin/youtubedl-gui

Under share/application you can find this file, edit it this line by and move it

youtubedl-gui.desktop
Exec=/usr/bin/youtubedl-gui
# to
Exec=/usr/local/bin/youtubedl-gui
# then move it to the location where GNOME Activities can find it
mv youtubedl-gui.desktop /home/$USER/.local/share/applications/youtubedl-gui.desktop

Captura de pantalla de 2021-02-09 16-28-17

Regards.,

2 Likes

When I look at their repo, it seems the project is dead. Last commit was 3 or 4 years ago.

If you really need it, you can build yourself an rpm package on COPR

1 Like

Looks like it is written in Python 2 and isn’t ported to Python 3. There is python2.7 package in Fedora which provides /usr/bin/python2 but I am not sure if it would help, maybe someone who knows Python can tell better. I know you said you are used to this program and it is a personal preference, but I would look for alternatives if I were you.

2 Likes