Cinnamon settings won't open after python3.6 installation

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












1















I tried to install python 3.7 on my debian 9.7 with cinnamon. I followed the best answer in this post and installed it using the debian testing repository. I think this was a bad idea...



It downloaded many packages, and now the cinnamon control center doesn't work anymore. If I try to start it from the command line I get:



$ cinnamon-settings
Traceback (most recent call last):
File "/usr/bin/cinnamon-settings", line 26, in <module>
os.execvp("/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", ("",) + tuple(sys.argv[1:]))
File "/usr/lib/python3.7/os.py", line 571, in execvp
_execvpe(file, args)
File "/usr/lib/python3.7/os.py", line 594, in _execvpe
exec_func(file, *argrest)
ValueError: execv() arg 2 first element cannot be empty


How do I fix this? I already tried removing python3.7, but I don't know what to do with the other packages?



The relevant part from /var/log/apt/history.log can be found here.










share|improve this question




























    1















    I tried to install python 3.7 on my debian 9.7 with cinnamon. I followed the best answer in this post and installed it using the debian testing repository. I think this was a bad idea...



    It downloaded many packages, and now the cinnamon control center doesn't work anymore. If I try to start it from the command line I get:



    $ cinnamon-settings
    Traceback (most recent call last):
    File "/usr/bin/cinnamon-settings", line 26, in <module>
    os.execvp("/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", ("",) + tuple(sys.argv[1:]))
    File "/usr/lib/python3.7/os.py", line 571, in execvp
    _execvpe(file, args)
    File "/usr/lib/python3.7/os.py", line 594, in _execvpe
    exec_func(file, *argrest)
    ValueError: execv() arg 2 first element cannot be empty


    How do I fix this? I already tried removing python3.7, but I don't know what to do with the other packages?



    The relevant part from /var/log/apt/history.log can be found here.










    share|improve this question


























      1












      1








      1








      I tried to install python 3.7 on my debian 9.7 with cinnamon. I followed the best answer in this post and installed it using the debian testing repository. I think this was a bad idea...



      It downloaded many packages, and now the cinnamon control center doesn't work anymore. If I try to start it from the command line I get:



      $ cinnamon-settings
      Traceback (most recent call last):
      File "/usr/bin/cinnamon-settings", line 26, in <module>
      os.execvp("/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", ("",) + tuple(sys.argv[1:]))
      File "/usr/lib/python3.7/os.py", line 571, in execvp
      _execvpe(file, args)
      File "/usr/lib/python3.7/os.py", line 594, in _execvpe
      exec_func(file, *argrest)
      ValueError: execv() arg 2 first element cannot be empty


      How do I fix this? I already tried removing python3.7, but I don't know what to do with the other packages?



      The relevant part from /var/log/apt/history.log can be found here.










      share|improve this question
















      I tried to install python 3.7 on my debian 9.7 with cinnamon. I followed the best answer in this post and installed it using the debian testing repository. I think this was a bad idea...



      It downloaded many packages, and now the cinnamon control center doesn't work anymore. If I try to start it from the command line I get:



      $ cinnamon-settings
      Traceback (most recent call last):
      File "/usr/bin/cinnamon-settings", line 26, in <module>
      os.execvp("/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", ("",) + tuple(sys.argv[1:]))
      File "/usr/lib/python3.7/os.py", line 571, in execvp
      _execvpe(file, args)
      File "/usr/lib/python3.7/os.py", line 594, in _execvpe
      exec_func(file, *argrest)
      ValueError: execv() arg 2 first element cannot be empty


      How do I fix this? I already tried removing python3.7, but I don't know what to do with the other packages?



      The relevant part from /var/log/apt/history.log can be found here.







      debian cinnamon python3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 16 at 15:24









      Prvt_Yadv

      2,64731027




      2,64731027










      asked Feb 16 at 12:54









      Nico FNico F

      82




      82




















          2 Answers
          2






          active

          oldest

          votes


















          2














          The error is because of Python 3.6 code:



          os.execvp("/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", ("",) + tuple(sys.argv[1:]))


          You need to change "" to " ", because it treats "" as empty.



          For more info you should visit this link. Here you will find the files which need the above modification (to replace "" with " ").






          share|improve this answer























          • Amazing, thank you so much :)

            – Nico F
            Feb 16 at 13:20


















          0














          If the other packages you installed were only installed for that new install of python, then you could:



          • Reinstall that new python (I know it seems pointless)

          • Then purge not remove that new python installation.

          • Then apt-get autoremove apt-get autoclean apt-get clean

          • Then reinstall the version of python, that was working.

          This should get rid of all the new python files and config files and unnecessary dependencies, the reinstall of the older version that worked should reinstall working config files.






          share|improve this answer






















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f501037%2fcinnamon-settings-wont-open-after-python3-6-installation%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









            2














            The error is because of Python 3.6 code:



            os.execvp("/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", ("",) + tuple(sys.argv[1:]))


            You need to change "" to " ", because it treats "" as empty.



            For more info you should visit this link. Here you will find the files which need the above modification (to replace "" with " ").






            share|improve this answer























            • Amazing, thank you so much :)

              – Nico F
              Feb 16 at 13:20















            2














            The error is because of Python 3.6 code:



            os.execvp("/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", ("",) + tuple(sys.argv[1:]))


            You need to change "" to " ", because it treats "" as empty.



            For more info you should visit this link. Here you will find the files which need the above modification (to replace "" with " ").






            share|improve this answer























            • Amazing, thank you so much :)

              – Nico F
              Feb 16 at 13:20













            2












            2








            2







            The error is because of Python 3.6 code:



            os.execvp("/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", ("",) + tuple(sys.argv[1:]))


            You need to change "" to " ", because it treats "" as empty.



            For more info you should visit this link. Here you will find the files which need the above modification (to replace "" with " ").






            share|improve this answer













            The error is because of Python 3.6 code:



            os.execvp("/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", ("",) + tuple(sys.argv[1:]))


            You need to change "" to " ", because it treats "" as empty.



            For more info you should visit this link. Here you will find the files which need the above modification (to replace "" with " ").







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 16 at 13:05









            Prvt_YadvPrvt_Yadv

            2,64731027




            2,64731027












            • Amazing, thank you so much :)

              – Nico F
              Feb 16 at 13:20

















            • Amazing, thank you so much :)

              – Nico F
              Feb 16 at 13:20
















            Amazing, thank you so much :)

            – Nico F
            Feb 16 at 13:20





            Amazing, thank you so much :)

            – Nico F
            Feb 16 at 13:20













            0














            If the other packages you installed were only installed for that new install of python, then you could:



            • Reinstall that new python (I know it seems pointless)

            • Then purge not remove that new python installation.

            • Then apt-get autoremove apt-get autoclean apt-get clean

            • Then reinstall the version of python, that was working.

            This should get rid of all the new python files and config files and unnecessary dependencies, the reinstall of the older version that worked should reinstall working config files.






            share|improve this answer



























              0














              If the other packages you installed were only installed for that new install of python, then you could:



              • Reinstall that new python (I know it seems pointless)

              • Then purge not remove that new python installation.

              • Then apt-get autoremove apt-get autoclean apt-get clean

              • Then reinstall the version of python, that was working.

              This should get rid of all the new python files and config files and unnecessary dependencies, the reinstall of the older version that worked should reinstall working config files.






              share|improve this answer

























                0












                0








                0







                If the other packages you installed were only installed for that new install of python, then you could:



                • Reinstall that new python (I know it seems pointless)

                • Then purge not remove that new python installation.

                • Then apt-get autoremove apt-get autoclean apt-get clean

                • Then reinstall the version of python, that was working.

                This should get rid of all the new python files and config files and unnecessary dependencies, the reinstall of the older version that worked should reinstall working config files.






                share|improve this answer













                If the other packages you installed were only installed for that new install of python, then you could:



                • Reinstall that new python (I know it seems pointless)

                • Then purge not remove that new python installation.

                • Then apt-get autoremove apt-get autoclean apt-get clean

                • Then reinstall the version of python, that was working.

                This should get rid of all the new python files and config files and unnecessary dependencies, the reinstall of the older version that worked should reinstall working config files.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 16 at 13:21









                Michael ProkopecMichael Prokopec

                1,532218




                1,532218



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f501037%2fcinnamon-settings-wont-open-after-python3-6-installation%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

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)