Cinnamon-settings fails to start

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
aleksandar
Level 1
Level 1
Posts: 3
Joined: Sat Dec 25, 2021 8:19 am

Cinnamon-settings fails to start

Post by aleksandar »

Greetings,

I can't start cinnamon-settings application.
I have Linux Mint 20.2.

When I click on "System Settings" icon from Desktop menu, nothing happens.
When I execute /usr/bin/cinnamon-settings from terminal, I have following output:

Code: Select all

Traceback (most recent call last):
  File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 734, in <module>
    window = MainWindow()
  File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 313, in __init__
    for module in modules:
  File "/usr/share/cinnamon/cinnamon-settings/modules/cs_calendar.py", line 6, in <module>
    import pytz
ModuleNotFoundError: No module named 'pytz'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 72, 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 32, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 12, in <module>
    import os, glob, subprocess, os.path, time, pwd, sys, requests_unixsocket
  File "/usr/lib/python3/dist-packages/requests_unixsocket/__init__.py", line 1, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

Original exception was:
Traceback (most recent call last):
  File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 734, in <module>
    window = MainWindow()
  File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 313, in __init__
    for module in modules:
  File "/usr/share/cinnamon/cinnamon-settings/modules/cs_calendar.py", line 6, in <module>
    import pytz
ModuleNotFoundError: No module named 'pytz'
When I start python interpreter and try to import modules requests and pytz, no error is reported:

Code: Select all

Python 3.8.10 (default, Nov 26 2021, 20:14:08) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> import pytz
>>> 
Does anyone have idea what could be the cause of this problem?
Best regards.
User avatar
JoeFootball
Level 13
Level 13
Posts: 4673
Joined: Tue Nov 24, 2009 1:52 pm
Location: /home/usa/mn/minneapolis/joe

Re: Cinnamon-settings fails to start

Post by JoeFootball »

aleksandar wrote: Does anyone have idea what could be the cause of this problem?
There was a similar issue for some users, but that was about two months ago. :?

What version of Cinnamon are you using? If you don't know, you can find out via: cinnamon --version
aleksandar
Level 1
Level 1
Posts: 3
Joined: Sat Dec 25, 2021 8:19 am

Re: Cinnamon-settings fails to start

Post by aleksandar »

I am using Cinnamon 5.0.7.
lemming
Level 1
Level 1
Posts: 1
Joined: Tue Jan 11, 2022 2:51 am

Re: Cinnamon-settings fails to start

Post by lemming »

I have gotten this problem a couple of times after an update.
Like yesterday.

Code: Select all

[1998 17:40:22] $ cinnamon-settings sound
No module named 'requests'
I solved this by re-installing the python requests module.

Code: Select all

sudo apt-get reinstall python3-requests
sudo apt-get reinstall python3-six
sudo apt-get reinstall python3-tz
Something strange happens with the python module dependencies.
aleksandar
Level 1
Level 1
Posts: 3
Joined: Sat Dec 25, 2021 8:19 am

Re: Cinnamon-settings fails to start

Post by aleksandar »

Thank you very much @lemming!

This solved the issue.

Best regards,
Aleksandar.
ijf8090
Level 1
Level 1
Posts: 1
Joined: Wed Jul 27, 2022 5:38 pm

Re: Cinnamon-settings fails to start

Post by ijf8090 »

When I ran
cinnamon-settings
I was getting the following error
"No module named 'PIL'"

sudo apt-get install --reinstall python3-pil

fixed the issue for me.

Best
Ian
Locked

Return to “Software & Applications”