Cinnamon settings won't open after python3.6 installation

Clash Royale CLAN TAG#URR8PPP
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
add a comment |
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
add a comment |
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
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
debian cinnamon python3
edited Feb 16 at 15:24
Prvt_Yadv
2,64731027
2,64731027
asked Feb 16 at 12:54
Nico FNico F
82
82
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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 " ").
Amazing, thank you so much :)
– Nico F
Feb 16 at 13:20
add a comment |
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
purgenotremovethat new python installation. - Then
apt-get autoremoveapt-get autocleanapt-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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 " ").
Amazing, thank you so much :)
– Nico F
Feb 16 at 13:20
add a comment |
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 " ").
Amazing, thank you so much :)
– Nico F
Feb 16 at 13:20
add a comment |
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 " ").
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 " ").
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
add a comment |
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
add a comment |
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
purgenotremovethat new python installation. - Then
apt-get autoremoveapt-get autocleanapt-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.
add a comment |
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
purgenotremovethat new python installation. - Then
apt-get autoremoveapt-get autocleanapt-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.
add a comment |
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
purgenotremovethat new python installation. - Then
apt-get autoremoveapt-get autocleanapt-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.
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
purgenotremovethat new python installation. - Then
apt-get autoremoveapt-get autocleanapt-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.
answered Feb 16 at 13:21
Michael ProkopecMichael Prokopec
1,532218
1,532218
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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