Missing Image module in python - ocrfeeder fails to start

Bug #1120201 reported by Barry Drake
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ocrfeeder (Ubuntu)
Confirmed
High
Unassigned

Bug Description

New installation of raring. ocrfeeder worked under raring previously, but now complains as follows:
barry@raring:~$ ocrfeeder
Traceback (most recent call last):
  File "/usr/bin/ocrfeeder", line 31, in <module>
    from ocrfeeder.studio.studioBuilder import Studio
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py", line 21, in <module>
    from ocrfeeder.util import lib
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/util/lib.py", line 23, in <module>
    import Image
ImportError: No module named Image

I have checked, and the python-imaging is installed and up-to-date for python 2.7. I imagine python has changed recently ....

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: ocrfeeder 0.7.9-1
ProcVersionSignature: Ubuntu 3.8.0-4.8-generic 3.8.0-rc6
Uname: Linux 3.8.0-4-generic i686
NonfreeKernelModules: fglrx
ApportVersion: 2.8-0ubuntu4
Architecture: i386
Date: Sat Feb 9 09:34:07 2013
InstallationDate: Installed on 2013-02-08 (0 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha i386 (20130202)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: ocrfeeder
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Barry Drake (b-drake) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in ocrfeeder (Ubuntu):
status: New → Confirmed
Revision history for this message
Pablo San Martín (san-wablo) wrote :

Same problem. Just intalled OCRFeeder on Lubuntu 14.04 and get

Traceback (most recent call last):
  File "/usr/bin/ocrfeeder", line 31, in <module>
    from ocrfeeder.studio.studioBuilder import Studio
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py", line 21, in <module>
    from ocrfeeder.util import lib
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/util/lib.py", line 23, in <module>
    import Image
ImportError: No module named Image

Revision history for this message
Jerome Potts (jerome-potts) wrote :

Rm bug duplicate of one specifically for Raring, which is closed presicely for that: no more support in Raring. This bug is present in Trusty, as documented by Pablo San Martin, and i am experiencing the same problem in Utopic.

tags: added: trusty utopic
Revision history for this message
Jerome Potts (jerome-potts) wrote :

Fix: replace line "import Image" with "from PIL import Image" in the following 6 files:
/usr/share/pyshared/ocrfeeder/util/graphics.py
/usr/share/pyshared/ocrfeeder/util/lib.py
/usr/share/pyshared/ocrfeeder/studio/dataHolder.py
/usr/share/pyshared/ocrfeeder/studio/widgetPresenter.py
/usr/share/pyshared/ocrfeeder/feeder/imageManipulation.py
/usr/share/pyshared/ocrfeeder/feeder/layoutAnalysis.py

Changed in ocrfeeder (Ubuntu):
importance: Undecided → High
Revision history for this message
Daëavelwyn (daeavelwyn) wrote :

I can confirm that Jerome Potts solution works on ubuntu 14.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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