simple-image-reducer does not start / ImportError: No module named Image

Problem:

~$ simple-image-reducer
Traceback (most recent call last): File "/usr/bin/simple-image-reducer", line 28, in <module> import Image
ImportError: No module named Image

Reason:

Image != image

1

2 Answers

It is a bug 1825832.

Please login to launchpad and click "This bug affects you and 1 other person" to confirm that this bug affects you.

The solution from proposed patch is simple - use PIL instead of Image.
We can apply the patch programmatically without installing other stuff:

sudo sed -i "s/^import Image/from PIL import Image/" /usr/bin/simple-image-reducer

1) make sure it is available

python -m pip install Image

2) where is it available?

sudo find ~ -name image -type d

-->> directory /home/MyHomeDir/.local/lib/python2.7/site-packages/image ->> OK

3) Tell simple-image-reducer via link:

ln -s ~/.local/lib/python2.7/site-packages/image ~/.local/lib/python2.7/site-packages/Image

4) invoke simple-image-reducer again.

Works:-)

Rem: Ubuntu 19.10, 19.04

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like