You are not logged in.
cinnamon-settings cannot find the Image module which is provided by python2-pillow:
[orschiro@thinkpad ~]$ cinnamon-settings
No module named Image
python2-pillow is installed on my machine:
:: 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
* Reinstalling it does not resolve the problem.
* I can successfully import Image from PIL when running the python2 interpreter with `from PIL import Image`.
* If I use python2-imaging instead of python2-pillow, then I can launch cinnamon-settings. However, this is not advisable since python2-imaging was replaced by python2-pillow.
* The import statement in imtools.py is correct:
[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
* The Shebang in cinnamon-settings.py is correct as well:
[orschiro@thinkpad ~]$ cat /usr/lib/cinnamon-settings/cinnamon-settings.py | head
#!/usr/bin/python2
That is, does anyone have an idea why cinnamon-settings is not able import Image from PIL whereas it is able when using python2-imaging instead of python2-pillow?
Any help is very much appreciated.
Last edited by orschiro (2013-11-09 07:47:32)
Offline
Finally I was able to find the cause of the issue. It was related to old compiled pyc files which apparently linked to the wrong path for the image module. I deleted the following files which I identified through lostfiles.
/usr/lib/cinnamon-settings/bin/capi.pyc
/usr/lib/cinnamon-settings/bin/ExtensionCore.pyc
/usr/lib/cinnamon-settings/bin/eyedropper.pyc
/usr/lib/cinnamon-settings/bin/SettingsWidgets.pyc
/usr/lib/cinnamon-settings/bin/Spices.pyc
/usr/lib/cinnamon-settings/bin/XletSettings.pyc
/usr/lib/cinnamon-settings/bin/XletSettingsWidgets.pyc
/usr/lib/cinnamon-settings/imtools.pyc
/usr/lib/cinnamon-settings/modules/cs_applets.pyc
/usr/lib/cinnamon-settings/modules/cs_backgrounds.pyc
/usr/lib/cinnamon-settings/modules/cs_calendar.pyc
/usr/lib/cinnamon-settings/modules/cs_default.pyc
/usr/lib/cinnamon-settings/modules/cs_desklets.pyc
/usr/lib/cinnamon-settings/modules/cs_desktop.pyc
/usr/lib/cinnamon-settings/modules/cs_effects.pyc
/usr/lib/cinnamon-settings/modules/cs_extensions.pyc
/usr/lib/cinnamon-settings/modules/cs_fonts.pyc
/usr/lib/cinnamon-settings/modules/cs_general.pyc
/usr/lib/cinnamon-settings/modules/cs_hotcorner.pyc
/usr/lib/cinnamon-settings/modules/cs_info.pyc
/usr/lib/cinnamon-settings/modules/cs_keyboard.pyc
/usr/lib/cinnamon-settings/modules/cs_menu.pyc
/usr/lib/cinnamon-settings/modules/cs_mouse.pyc
/usr/lib/cinnamon-settings/modules/cs_panel.pyc
/usr/lib/cinnamon-settings/modules/cs_screensaver.pyc
/usr/lib/cinnamon-settings/modules/cs_themes.pyc
/usr/lib/cinnamon-settings/modules/cs_tiling.pyc
/usr/lib/cinnamon-settings/modules/cs_user.pyc
/usr/lib/cinnamon-settings/modules/cs_windows.pyc
/usr/lib/cinnamon-settings/modules/cs_workspaces.pyc
/usr/lib/cinnamon-settings/tz.pyc
Offline