question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

couldn't install in ubuntu 20.04

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
christopher-kleinecommented, May 26, 2020

@ajithrn tbh: The devs should drop Python 2. Period. Python 2 reached End Of Life (EOL) And I don’t care what it is, once it reached EOL, it has to be upgraded or one has to pay for further support. That applies at least to the professional world. Windows 7? People loved it. But it reached EOL and had to be replaced. Is everyone happy with it? No, of course not. Will everyone switch to Windows 10? No, of course not. But they have nobody to blame, if someone uses an exploit for Win7 and harms their IT.

Look at other active maintained Open Source Projects like WordPress. I quote from their website:

We recommend servers running version 7.3 or greater of PHP and MySQL version 5.6 OR MariaDB version 10.1 or greater. 

Meaning PHP 7.2 or even below that is no longer supported (or at least not recommended). And according to the (Supported Versions of PHP](https://www.php.net/supported-versions.php) PHP 7.2 is still maintained - even if only for security fixes.

I checked Drupal as well. They too recommend PHP 7.3+ and anything below is not recommended or simply doesn’t work anymore.

I happen to work in the IT and we have customers with an old version of WordPress with an even older version of PHP (5.6 i.e.). They have to pay their hoster for this.

And I’m pretty sure, most other Python 2 projects moved on as well. BTW: If you looked at #444 you’ll notice that this very project is not maintained anymore. So move on and simply ditch it.

I don’t have the time, money nor the required patience to deal with dead projects. I’d rather stick to https://github.com/axcore/tartube and be done with it. It looks better in any way, it uses Python 3, manages your Downloads and if you don’t want it to do that, you can still use the old style since even this is implemented.

So … why should I fight with an inferior project?

0reactions
aindriu80commented, Aug 19, 2020

Did they abandon youtube-dl-gui ? I can’t get it installed on Ubuntu 20.04

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't install Ubuntu 20.04
Try using a different USB stick and make sure you first click "Try Ubuntu Before Installing" then start installing process from the desktop....
Read more >
Can't Install Deb File on Ubuntu 20.04? Here's the Fix!
The solution for this problem is pretty simple. You change the default application in Ubuntu for opening DEB files from Archive Manager to...
Read more >
Ubuntu 20.04 installation problems - linux - Super User
I am trying to install Ubuntu 20.04 LTS (alongside windows and/or otherwise) (specifications are given below) but I couldn't.
Read more >
Ubuntu 20.04 installtion script failed (Couldn't create ... - GitHub
I run the installation script on a fresh Ubuntu 20.04 and I got the following error (even though setup succeded (but failed to...
Read more >
[Fixed] Grub Install Fatal Error in Ubuntu 20.04 LTS ... - YouTube
Hi Guys,If you want to use Linux and if you're planning to install and dual boot Linux distros like Ubuntu, and If you're...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found