Cinnamon settings won't start

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
solipsy

Cinnamon settings won't start

Post by solipsy »

Hi,

I'm having trouble with Settings panel since I installed Python 2.7.10. Startiung it in terminal produces this error:

Code: Select all

cinnamon-settings
Traceback (most recent call last):
  File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 12, in <module>
    import gi
ImportError: No module named gi
I read many topics about this, but I didn't find out how to repair this. I'd like to avoid system reinstallation, since I just did it for CUDA.
I did reinstall Cinnamon, but nothing changed.

In this topic: http://forums.linuxmint.com/viewtopic.php?f=47&t=211222
it was suggested:
Okay ranaming ~/.pyenv to ~/.pyenv2 and removing it from bashrc fixed the problem but some of my packages use pyenv https://github.com/yyuu/pyenv
But I don't have this in home.

And here: https://github.com/linuxmint/Cinnamon/issues/4421 someone said:
This ended up working:
$ mv ~/bin/python ~/bin/old_python
But I'm not sure.

Can somebody help?

Here's the output of some suggested commands:

Code: Select all

which python
/usr/local/bin/python

Code: Select all

ls -la /usr/bin/python*
lrwxrwxrwx 1 root root       9 Dec 25 18:05 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root       9 Dec 25 18:05 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3345416 Jun 22  2015 /usr/bin/python2.7
lrwxrwxrwx 1 root root      33 Jun 22  2015 /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-config
lrwxrwxrwx 1 root root      16 Dec 21  2013 /usr/bin/python2-config -> python2.7-config
lrwxrwxrwx 1 root root       9 Dec 25 18:05 /usr/bin/python3 -> python3.4
-rwxr-xr-x 1 root root 3709944 Oct 14 23:42 /usr/bin/python3.4
-rwxr-xr-x 1 root root 3709944 Oct 14 23:42 /usr/bin/python3.4m
lrwxrwxrwx 1 root root      10 Dec 25 18:05 /usr/bin/python3m -> python3.4m
lrwxrwxrwx 1 root root      16 Dec 21  2013 /usr/bin/python-config -> python2.7-config

Code: Select all

System:    Host: virostatiq Kernel: 3.19.0-32-generic x86_64 (64 bit gcc: 4.8.2)
           Desktop: Cinnamon 2.8.6 (Gtk 3.10.8) Distro: Linux Mint 17.3 Rosa
Machine:   System: Gigabyte product: N/A
           Mobo: Gigabyte model: Z170-HD3P-CF v: x.x Bios: American Megatrends v: F2 date: 07/27/2015
CPU:       Quad core Intel Core i7-6700 (-HT-MCP-) cache: 8192 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 27264
           clock speeds: max: 3401 MHz 1: 1000 MHz 2: 800 MHz 3: 800 MHz 4: 800 MHz 5: 800 MHz 6: 800 MHz
           7: 800 MHz 8: 1000 MHz
Graphics:  Card: NVIDIA Device 17c8 bus-ID: 01:00.0
           Display Server: X.Org 1.17.1 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.0hz, 1280x1024@60.0hz
           GLX Renderer: GeForce GTX 980 Ti/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 352.68 Direct Rendering: Yes
Audio:     Card-1 Intel Device a170 driver: snd_hda_intel bus-ID: 00:1f.3 Sound: ALSA v: k3.19.0-32-generic
           Card-2 NVIDIA Device 0fb0 driver: snd_hda_intel bus-ID: 01:00.1
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: d000 bus-ID: 06:00.0
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 1512.3GB (20.9% used) ID-1: /dev/sda model: Crucial_CT512MX1 size: 512.1GB
           ID-2: /dev/sdb model: TOSHIBA_DT01ACA1 size: 1000.2GB
Partition: ID-1: / size: 462G used: 66G (15%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 8.57GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 0.0:61C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 235 Uptime: 2:38 Memory: 3047.6/32126.0MB Init: Upstart runlevel: 2 Gcc sys: 4.8.4
           Client: Shell (bash 4.3.111) inxi: 2.2.28 

Code: Select all

inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list.d/additional-repositories.list
           deb http://dl.google.com/linux/chrome/deb/ stable main
           Active apt sources in file: /etc/apt/sources.list.d/cuda.list
           deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64 /
           Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list
           deb http://dl.google.com/linux/chrome/deb/ stable main
           Active apt sources in file: /etc/apt/sources.list.d/kilian-f_lux-trusty.list
           deb http://ppa.launchpad.net/kilian/f.lux/ubuntu trusty main
           deb-src http://ppa.launchpad.net/kilian/f.lux/ubuntu trusty main
           Active apt sources in file: /etc/apt/sources.list.d/mongodb-org-3.0.list
           deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://mirror.karneval.cz/pub/linux/linuxmint/packages rosa main upstream import
           deb http://extra.linuxmint.com rosa main
           deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ trusty partner
           Active apt sources in file: /etc/apt/sources.list.d/tsvetko_tsvetkov-cinnamon-trusty.list
           deb http://ppa.launchpad.net/tsvetko.tsvetkov/cinnamon/ubuntu trusty main
           deb-src http://ppa.launchpad.net/tsvetko.tsvetkov/cinnamon/ubuntu trusty main
Thanks, Marko
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.
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: Cinnamon settings won't start

Post by xenopeek »

Python 2 and Python 3 are core system components. It can break a lot of software when you mess about with installing other Python versions than which come with the operating system.

The obvious problem for you is this:
solipsy wrote:

Code: Select all

which python
/usr/local/bin/python
python should be /usr/bin/python, which should be a link to /usr/bin/python2, which should be a link to /usr/bin/python2.7, which should be version 2.7.6.

One solution is to rename /usr/local/bin/python to /usr/local/bin/python2.7.10 and in any scripts that need that version to use #!//usr/local/bin/python2.7.10. Another solution is to move /usr/local/bin/python to another directory, one not in your path or at least with lower priority than /usr/bin. Then for any script that need that version load a custom path first.
Image
Locked

Return to “Cinnamon”