FS#37289 - [cinnamon] Cannot launch cinnamon-settings - missing image module
Attached to Project:
Community Packages
Opened by Robert Orzanna (orschiro) - Friday, 11 October 2013, 09:23 GMT
Last edited by Balló György (City-busz) - Monday, 04 November 2013, 00:43 GMT
Opened by Robert Orzanna (orschiro) - Friday, 11 October 2013, 09:23 GMT
Last edited by Balló György (City-busz) - Monday, 04 November 2013, 00:43 GMT
|
Details
Description:
When I try to run `cinnamon-settings` it fails with the following message: [orschiro@thinkpad ~]$ cinnamon-settings No module named Image However, I seem to have installed all relevant packages: :: python2-imaging and python2-pillow are in conflict (python-imaging). Remove python2-pillow? [y/N] y error: failed to prepare transaction (could not satisfy dependencies) :: cinnamon: requires python2-pillow Additional info: * package version(s) * config and/or log files etc. cinnamon 2.0.2-1 cinnamon-control-center 2.0.2-1 |
This task depends upon
Closed by Balló György (City-busz)
Monday, 04 November 2013, 00:43 GMT
Reason for closing: Works for me
Monday, 04 November 2013, 00:43 GMT
Reason for closing: Works for me
[orschiro@thinkpad ~]$ sudo pacman -S python2-pillow
[sudo] password for orschiro:
warning: python2-pillow-2.2.1-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
Packages (1): python2-pillow-2.2.1-1
Total Installed Size: 1.56 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) checking available disk space [######################] 100%
(1/1) reinstalling python2-pillow [######################] 100%
[orschiro@thinkpad ~]$ cinnamon-settings
No module named Image
If you have python2 in the header, check also if you can import Image in a python2 console: python2 -> from PIL import Image
[orschiro@thinkpad ~]$ cat /usr/lib/cinnamon-settings/cinnamon-settings.py | head
#!/usr/bin/python2
[orschiro@thinkpad ~]$ python2
Python 2.7.5 (default, Sep 6 2013, 09:55:21)
[GCC 4.8.1 20130725 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image
[orschiro@thinkpad ~]$ cinnamon-settings
/usr/lib/python2.7/site-packages/gi/types.py:226: RuntimeWarning: Mixin class XletSettingsWidgets.BaseWidget is an old style class, please update this to derive from "object".
RuntimeWarning)
/usr/lib/cinnamon-settings/modules/cs_user.py:112: Warning: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
file_icon = Gio.FileIcon().new(file)
Could not find bluetooth module; is the cinnamon-control-center package installed?
__init__ took 8932.928 ms
[orschiro@thinkpad ~]$ cat /usr/lib/cinnamon-settings/bin/imtools.py | grep "from PIL"
from PIL import Image
from PIL import ImageDraw
from PIL import ImageEnhance
from PIL import ImageOps, ImageChops, ImageFilter
See: https://github.com/linuxmint/Cinnamon/issues/2495#issuecomment-27574724
What do you think?
Reinstalling the packages, as already reported above, does not resolve it.
# pacman -S $(pacman -Qq | grep -v "$(pacman -Qmq)")