FS#63047 - [cinnamon][4.2.0] Control center doesn't start: 'tinycss' not found.

Attached to Project: Community Packages
Opened by Frederic Bezies (fredbezies) - Sunday, 30 June 2019, 20:04 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 01 July 2019, 02:12 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Eli Schwartz (eschwartz)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description: Just upgraded a cinnamon installation to 4.2.0 using cinnamon 4.2.0 and muffin 4.2.0 packages.

When I try to launch it, nothing happens.

But in command line:

[fred@fredo-archlinux-cinnamon ~]$ cinnamon-settings&
[1] 1044
[fred@fredo-archlinux-cinnamon ~]$ True
Traceback (most recent call last):
File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py",
line 724, in <module>
window = MainWindow()
File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py",
line 305, in __init__
for module in modules:
File "/usr/share/cinnamon/cinnamon-settings/modules/cs_themes.py",
line 6, in <module>
from CinnamonGtkSettings import CssRange, CssOverrideSwitch,
GtkSettingsSwitch, PreviewWidget, Gtk2ScrollbarSizeEditor
File "/usr/share/cinnamon/cinnamon-settings/bin/CinnamonGtkSettings.py",
line 6, in <module>
import tinycss
ModuleNotFoundError: No module named 'tinycss'


Additional info:
muffin 4.2.0-1
cinnamon 4.2.0-1

Steps to reproduce:
1. Install or upgrade cinnamon to version 4.2.0.
2. Try to launch control center.
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Monday, 01 July 2019, 02:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  cinnamon 4.2.0-2
Comment by Frederic Bezies (fredbezies) - Sunday, 30 June 2019, 20:16 GMT
A workaround is to add to depends python-tinycss2 and modify /usr/share/cinnamon/settings/bin/Cinnamon-gtk-setting.py in order to import tinycss2 instead of tinycss.

Kinda dirty but I got control center running this way.
Comment by Eli Schwartz (eschwartz) - Sunday, 30 June 2019, 21:08 GMT
Ugh, not sure why I didn't notice this, but I don't often open the control center...

Not sure why it uses tinycss over tinycss2. The landscape here is entirely too fragmented.
Comment by Frederic Bezies (fredbezies) - Sunday, 30 June 2019, 21:10 GMT
See this commit: https://github.com/linuxmint/cinnamon/commit/9d94f02a309b36535fcfe874c179f165a1b607c0#diff-f5b92fe38ccedbb5a25023ec9c6fe790

It adds tinycss to source code and some themes settings tweaking.

And it looks like python-tinycss2 is more or less python3-tinycss in Debian world.
Comment by Eli Schwartz (eschwartz) - Sunday, 30 June 2019, 21:11 GMT
Yes I know, I'm looking at it :/
Comment by Frederic Bezies (fredbezies) - Sunday, 30 June 2019, 21:12 GMT
A depend added on june 29th... How unlucky!
Comment by Eli Schwartz (eschwartz) - Sunday, 30 June 2019, 23:10 GMT
tinycss2 is not even compatible, so you could just as easily have changed that to "import os" for all the good it will do. I'm resurrecting the old python-tinycss package from 2017.
Comment by Eli Schwartz (eschwartz) - Sunday, 30 June 2019, 23:21 GMT
cinnamon 4.2.0-2 should work properly.

Loading...