FS#63049 - [cinnamon] >= 4.2 Requires additional package python-tinycss2
Attached to Project:
Community Packages
Opened by Leonardo Gates (leogx9r) - Sunday, 30 June 2019, 23:33 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 01 July 2019, 00:56 GMT
Opened by Leonardo Gates (leogx9r) - Sunday, 30 June 2019, 23:33 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 01 July 2019, 00:56 GMT
|
Details
Description:
Starting with 4.2, Cinnamon ( and by extension cinnamon-settings ) now requires python-tinycss2 to run. This package however is installed as `tinycss2` while Cinnamon expects the module to be named `tinycss`. Steps to reproduce: 1.) Run `cinnamon-settings`. 2.) You'll be met with the following error ``` 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' ``` Solved by patching `/usr/share/cinnamon/cinnamon-settings/bin/CinnamonGtkSettings.py` to use `tinycss2`. ``` --- a/usr/share/cinnamon/cinnamon-settings/bin/CinnamonGtkSettings.py 2019-06-30 23:28:50.000000000 +0000 +++ b/usr/share/cinnamon/cinnamon-settings/bin/CinnamonGtkSettings.py 2019-06-30 23:28:34.000000000 +0000 @@ -3,8 +3,8 @@ import os.path import signal -import tinycss -from tinycss import tokenizer +import tinycss2 +from tinycss2 import tokenizer import gi gi.require_version("Gtk", "3.0") ``` |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Monday, 01 July 2019, 00:56 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#63047
Monday, 01 July 2019, 00:56 GMT
Reason for closing: Duplicate
Additional comments about closing:
Comment by
Leonardo Gates (leogx9r) - Sunday,
30 June 2019, 23:35 GMT
Comment by
Eli Schwartz (eschwartz) - Monday,
01 July 2019, 00:56 GMT
Duplicate, see
https://bugs.archlinux.org/task/63047
Also the fact that tinycss2 is named tinycss2, whereas cinnamon
wants "tinycss", should be a bit of a giveaway that tinycss2 is
not actually sufficient.