ImportError: No module named Image

Bug #1825832 reported by Alessio Linares
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
simple-image-reducer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

simple-image-reducer fails to start. It prints the following output before failing:
```
Traceback (most recent call last):
  File "/usr/bin/simple-image-reducer", line 28, in <module>
    import Image
ImportError: No module named Image
```

I just installed it using apt and tried running it from the CLI.

System info:
```
$ lsb_release -rd
Description: Ubuntu 18.04.2 LTS
Release: 18.04

$ apt-cache policy simple-image-reducer
simple-image-reducer:
  Installed: 1.0.2-6
  Candidate: 1.0.2-6
  Version table:
 *** 1.0.2-6 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages
        100 /var/lib/dpkg/status
```

What you expected to happen?
The program to start and run nomally.

What happened instead?
It failed to start with the error pasted above.

I managed to get the program working by applying the changes contained in the attached patch file.

Tags: bionic patch
Revision history for this message
Alessio Linares (alessio-linares2) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in simple-image-reducer (Ubuntu):
status: New → Confirmed
Revision history for this message
Norbert (nrbrtx) wrote :

All current Ubuntu version are affected. So the package has wrong dependencies or "import" lines inside (see patch above).

tags: added: bionic disco eoan
Revision history for this message
Norbert (nrbrtx) wrote :

Also seen on AskUbuntu - https://askubuntu.com/q/1177372/66509

One-line fix:

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

Norbert (nrbrtx)
tags: removed: disco eoan
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.