How can I fix terminator? It doesn't work












0















When I run terminator in terminal, it doesn't work. The error is this:



$ terminator

File "/usr/bin/terminator", line 119
except (KeyError,ValueError), ex:

^
SyntaxError: invalid syntax

Error in sys.excepthook:

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook

from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in
<module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging

File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module>

import apt

File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>

import apt_pkg

ModuleNotFoundError: No module named 'apt_pkg'


Original exception was:

File "/usr/bin/terminator", line 119

except (KeyError,ValueError), ex:
^

SyntaxError: invalid syntax


How can I fix it? I use Ubuntu 16.04.










share|improve this question

























  • What is the output of which python? Also, what is the first line of /usr/bin/terminator? Is it something like #!/usr/bin/python3? or is it #!/usr/bin/python?

    – Kulfy
    Feb 6 at 18:00













  • It is #!/usr/bin/python

    – Alex Seo
    Feb 8 at 9:18











  • Do you have python2 installed? Run sudo apt install python or what is the output of which python?

    – Kulfy
    Feb 8 at 12:38


















0















When I run terminator in terminal, it doesn't work. The error is this:



$ terminator

File "/usr/bin/terminator", line 119
except (KeyError,ValueError), ex:

^
SyntaxError: invalid syntax

Error in sys.excepthook:

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook

from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in
<module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging

File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module>

import apt

File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>

import apt_pkg

ModuleNotFoundError: No module named 'apt_pkg'


Original exception was:

File "/usr/bin/terminator", line 119

except (KeyError,ValueError), ex:
^

SyntaxError: invalid syntax


How can I fix it? I use Ubuntu 16.04.










share|improve this question

























  • What is the output of which python? Also, what is the first line of /usr/bin/terminator? Is it something like #!/usr/bin/python3? or is it #!/usr/bin/python?

    – Kulfy
    Feb 6 at 18:00













  • It is #!/usr/bin/python

    – Alex Seo
    Feb 8 at 9:18











  • Do you have python2 installed? Run sudo apt install python or what is the output of which python?

    – Kulfy
    Feb 8 at 12:38
















0












0








0








When I run terminator in terminal, it doesn't work. The error is this:



$ terminator

File "/usr/bin/terminator", line 119
except (KeyError,ValueError), ex:

^
SyntaxError: invalid syntax

Error in sys.excepthook:

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook

from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in
<module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging

File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module>

import apt

File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>

import apt_pkg

ModuleNotFoundError: No module named 'apt_pkg'


Original exception was:

File "/usr/bin/terminator", line 119

except (KeyError,ValueError), ex:
^

SyntaxError: invalid syntax


How can I fix it? I use Ubuntu 16.04.










share|improve this question
















When I run terminator in terminal, it doesn't work. The error is this:



$ terminator

File "/usr/bin/terminator", line 119
except (KeyError,ValueError), ex:

^
SyntaxError: invalid syntax

Error in sys.excepthook:

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook

from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in
<module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging

File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module>

import apt

File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>

import apt_pkg

ModuleNotFoundError: No module named 'apt_pkg'


Original exception was:

File "/usr/bin/terminator", line 119

except (KeyError,ValueError), ex:
^

SyntaxError: invalid syntax


How can I fix it? I use Ubuntu 16.04.







16.04 python terminator






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 6 at 18:03









Kulfy

4,70151642




4,70151642










asked Feb 1 at 13:32









Alex SeoAlex Seo

1




1













  • What is the output of which python? Also, what is the first line of /usr/bin/terminator? Is it something like #!/usr/bin/python3? or is it #!/usr/bin/python?

    – Kulfy
    Feb 6 at 18:00













  • It is #!/usr/bin/python

    – Alex Seo
    Feb 8 at 9:18











  • Do you have python2 installed? Run sudo apt install python or what is the output of which python?

    – Kulfy
    Feb 8 at 12:38





















  • What is the output of which python? Also, what is the first line of /usr/bin/terminator? Is it something like #!/usr/bin/python3? or is it #!/usr/bin/python?

    – Kulfy
    Feb 6 at 18:00













  • It is #!/usr/bin/python

    – Alex Seo
    Feb 8 at 9:18











  • Do you have python2 installed? Run sudo apt install python or what is the output of which python?

    – Kulfy
    Feb 8 at 12:38



















What is the output of which python? Also, what is the first line of /usr/bin/terminator? Is it something like #!/usr/bin/python3? or is it #!/usr/bin/python?

– Kulfy
Feb 6 at 18:00







What is the output of which python? Also, what is the first line of /usr/bin/terminator? Is it something like #!/usr/bin/python3? or is it #!/usr/bin/python?

– Kulfy
Feb 6 at 18:00















It is #!/usr/bin/python

– Alex Seo
Feb 8 at 9:18





It is #!/usr/bin/python

– Alex Seo
Feb 8 at 9:18













Do you have python2 installed? Run sudo apt install python or what is the output of which python?

– Kulfy
Feb 8 at 12:38







Do you have python2 installed? Run sudo apt install python or what is the output of which python?

– Kulfy
Feb 8 at 12:38












2 Answers
2






active

oldest

votes


















0














Consider to reinstall packages with apt_pkg with



sudo apt-get install --reinstall python-apt python3-apt


and to be completely sure reinstall Terminator with



sudo apt-get install --reinstall terminator





share|improve this answer
























  • I tried your solution but it didn't work. It had same problem

    – Alex Seo
    Feb 6 at 14:49



















0














Terminator require python2 libraries but from your output it seems it is using python3 to run. Also, according to release notes of Ubuntu 18.04,




Python 2 is no longer installed by default. Python 3 has been updated to 3.6. This is the last LTS release to include Python 2 in main.




To install Python2 in 18.04, run:



sudo apt install python-minimal





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114732%2fhow-can-i-fix-terminator-it-doesnt-work%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Consider to reinstall packages with apt_pkg with



    sudo apt-get install --reinstall python-apt python3-apt


    and to be completely sure reinstall Terminator with



    sudo apt-get install --reinstall terminator





    share|improve this answer
























    • I tried your solution but it didn't work. It had same problem

      – Alex Seo
      Feb 6 at 14:49
















    0














    Consider to reinstall packages with apt_pkg with



    sudo apt-get install --reinstall python-apt python3-apt


    and to be completely sure reinstall Terminator with



    sudo apt-get install --reinstall terminator





    share|improve this answer
























    • I tried your solution but it didn't work. It had same problem

      – Alex Seo
      Feb 6 at 14:49














    0












    0








    0







    Consider to reinstall packages with apt_pkg with



    sudo apt-get install --reinstall python-apt python3-apt


    and to be completely sure reinstall Terminator with



    sudo apt-get install --reinstall terminator





    share|improve this answer













    Consider to reinstall packages with apt_pkg with



    sudo apt-get install --reinstall python-apt python3-apt


    and to be completely sure reinstall Terminator with



    sudo apt-get install --reinstall terminator






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 1 at 13:43









    N0rbertN0rbert

    23.5k649111




    23.5k649111













    • I tried your solution but it didn't work. It had same problem

      – Alex Seo
      Feb 6 at 14:49



















    • I tried your solution but it didn't work. It had same problem

      – Alex Seo
      Feb 6 at 14:49

















    I tried your solution but it didn't work. It had same problem

    – Alex Seo
    Feb 6 at 14:49





    I tried your solution but it didn't work. It had same problem

    – Alex Seo
    Feb 6 at 14:49













    0














    Terminator require python2 libraries but from your output it seems it is using python3 to run. Also, according to release notes of Ubuntu 18.04,




    Python 2 is no longer installed by default. Python 3 has been updated to 3.6. This is the last LTS release to include Python 2 in main.




    To install Python2 in 18.04, run:



    sudo apt install python-minimal





    share|improve this answer




























      0














      Terminator require python2 libraries but from your output it seems it is using python3 to run. Also, according to release notes of Ubuntu 18.04,




      Python 2 is no longer installed by default. Python 3 has been updated to 3.6. This is the last LTS release to include Python 2 in main.




      To install Python2 in 18.04, run:



      sudo apt install python-minimal





      share|improve this answer


























        0












        0








        0







        Terminator require python2 libraries but from your output it seems it is using python3 to run. Also, according to release notes of Ubuntu 18.04,




        Python 2 is no longer installed by default. Python 3 has been updated to 3.6. This is the last LTS release to include Python 2 in main.




        To install Python2 in 18.04, run:



        sudo apt install python-minimal





        share|improve this answer













        Terminator require python2 libraries but from your output it seems it is using python3 to run. Also, according to release notes of Ubuntu 18.04,




        Python 2 is no longer installed by default. Python 3 has been updated to 3.6. This is the last LTS release to include Python 2 in main.




        To install Python2 in 18.04, run:



        sudo apt install python-minimal






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 8 at 17:00









        KulfyKulfy

        4,70151642




        4,70151642






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114732%2fhow-can-i-fix-terminator-it-doesnt-work%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to make a Squid Proxy server?

            Is this a new Fibonacci Identity?

            19世紀