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.
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.
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
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.