When trying to run cinnamon-settings python2 I see the following error:
hutber@hutber:~$ cinnamon-settings python2
Traceback (most recent call last):
File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 619, in <module>
window = MainWindow()
File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 247, in __init__
for module in modules:
File "/usr/share/cinnamon/cinnamon-settings/modules/cs_backgrounds.py", line 5, in <module>
import imtools
File "/usr/share/cinnamon/cinnamon-settings/bin/imtools.py", line 623, in <module>
if Image.VERSION == '1.1.7':
AttributeError: module 'PIL.Image' has no attribute 'VERSION'
I saw this error after installing pip3 install streamdeck_ui --user install
This is a known versioning issue between cinnamon and
pillow >= 6.0.0
. You can find more info here. As a previous commenter said, you can find the error in/usr/share/cinnamon/cinnamon-settings/bin/imtools.py
. However, changingImage.VERSION
toPIL.VERSION
will not fix the issue forpillow >= 7.0.0
. You must instead change the line toif Image.__version__ == '1.1.7':
.If you are comfortable with python. You can modify
/usr/share/cinnamon/cinnamon-settings/bin/imtools.py
./usr/share/cinnamon/cinnamon-settings/bin/imtools.py
with nanoBefore:
After:
A check for version Image.VERSION 1.1.7 is not needed if you are using current version of PIL.