Can't open cinnamon-settings: No module named gi.repository

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dmintyest

Can't open cinnamon-settings: No module named gi.repository

Post by dmintyest »

I can't open any of the settings windows for cinnamon. Each time I try, I get this error:

Code: Select all

$ cinnamon-settings
Traceback (most recent call last):
  File "/usr/lib/cinnamon-settings/cinnamon-settings.py", line 12, in <module>
    from gi.repository import Gio, Gtk, GObject, GdkPixbuf, GLib, Pango, Gdk, cairo
ImportError: No module named gi.repository
I have no idea what caused this, pretty sure it happened after doing an apt-get upgrade a while back. I've been hoping for a fix to come through the same channel, but nothing yet. Does anyone have any ideas? Or do I have to re-install Mint (that's what I've had to do on my other machine with the same issue).
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Can't open cinnamon-settings: No module named gi.reposit

Post by Cosmo. »

dmintyest wrote:I have no idea what caused this, pretty sure it happened after doing an apt-get upgrade
Pretty sure that this may be the culprit. apt-get doesn't know anything about the update levels of the update-manager, which are there, to prevent such problems, which are likely to only be solvable by a new installation.
Laurent85
Level 17
Level 17
Posts: 7081
Joined: Tue May 26, 2015 10:11 am

Re: Can't open cinnamon-settings: No module named gi.reposit

Post by Laurent85 »

Post back command output:

Code: Select all

inxi -S
apt policy python python-gi
Image
dmintyest

Re: Can't open cinnamon-settings: No module named gi.reposit

Post by dmintyest »

Code: Select all

$ inxi -S
System:    Host: Mintchine Kernel: 3.16.0-38-generic x86_64 (64 bit) Desktop: Cinnamon 2.6.13  Distro: Linux Mint 17.2 Rafaela

$ apt policy python python-gi
python:
  Installed: 2.7.5-5ubuntu3
  Candidate: 2.7.5-5ubuntu3
  Version table:
 *** 2.7.5-5ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
python-gi:
  Installed: 3.12.0-1ubuntu1
  Candidate: 3.12.0-1ubuntu1
  Version table:
 *** 3.12.0-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.12.0-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
@Laurent85
Laurent85
Level 17
Level 17
Posts: 7081
Joined: Tue May 26, 2015 10:11 am

Re: Can't open cinnamon-settings: No module named gi.reposit

Post by Laurent85 »

Looks alright, try to reinstall python-gi, the reported missing module:

Code: Select all

apt reinstall python-gi
Image
dmintyest

Re: Can't open cinnamon-settings: No module named gi.reposit

Post by dmintyest »

I tried the reinstall, same message, gi.repository is not being found.
Locked

Return to “Cinnamon”