couldn't install in ubuntu 20.04

Author: mujeebcpyCreated May 21, 2020Updated Dec 12, 2024

Bug report

cant install youtube-dl-gui in ubuntu 20.04. there is a dependency issue of twodict. i tried installing with pip and using source compilation. both failed.

What operating system do you use ?

Ubuntu 20.04

List of actions to perform to reproduce the problem:

  1. .. install package using pip or setup.py

What is the expected behaviour ?

install correctly

What happens instead ?

showing dependency error and python2 print error

pip3 install youtube-dlg
Collecting youtube-dlg
  Downloading Youtube-DLG-0.4.tar.gz (153 kB)
     |████████████████████████████████| 153 kB 145 kB/s 
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l3anp9ah/youtube-dlg/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l3anp9ah/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-install-l3anp9ah/youtube-dlg/pip-egg-info                                                                                                                                       
         cwd: /tmp/pip-install-l3anp9ah/youtube-dlg/                                                                                                                                           
    Complete output (8 lines):                                                                                                                                                                 
    Traceback (most recent call last):                                                                                                                                                         
      File "<string>", line 1, in <module>                                                                                                                                                     
      File "/tmp/pip-install-l3anp9ah/youtube-dlg/setup.py", line 69, in <module>                                                                                                              
        from youtube_dl_gui import (                                                                                                                                                           
      File "/tmp/pip-install-l3anp9ah/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.

when installing through setup.py i get No module named twodict and cant able to install twodic for python2 in ubuntu 20.04

Source: MrS0m30n3/youtube-dl-gui