Bug 13313 - Ocrfeeder do not start. (No module named Image")
Summary: Ocrfeeder do not start. (No module named Image")
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure MGA4-64-OK MGA4-32-OK a...
Keywords: Triaged, validated_update
Depends on:
Blocks:
 
Reported: 2014-05-03 13:26 CEST by Dušan Pavlík
Modified: 2014-05-15 00:22 CEST (History)
10 users (show)

See Also:
Source RPM: ocrfeeder
CVE:
Status comment:


Attachments

Description Dušan Pavlík 2014-05-03 13:26:28 CEST
Description of problem:
Program do not work.

When I running this program on console. Console is writing 

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


I installed module for python Image "python-pillow" - it not help




Version-Release number of selected component (if applicable):
ocrfeeder-0.7.11-4.mga4



How reproducible:

Every time when I running  Ocrfeeder




Steps to Reproduce:
1.run from menu ocrfeeder



Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2014-05-08 20:19:07 CEST
adding commiter and the packager that obsoleted python-imaging

Keywords: (none) => Triaged
CC: (none) => fundawang, jani.valimaa, julien.moragny, makowski.mageia, olav
Summary: Ocrfeeder do not start. => Ocrfeeder do not start. (No module named Image")
Source RPM: (none) => ocrfeeder

Comment 2 Philippe Makowski 2014-05-10 12:29:21 CEST
the fix is simple , see https://wiki.mageia.org/en/Feature:Pillow#What_could_disrupt_development_of_this_new_feature

and here upstream status (with a patch) here : https://bugzilla.gnome.org/show_bug.cgi?id=712671
Comment 3 David GEIGER 2014-05-10 14:49:32 CEST
I'll fix that on Cauldon and mga4 too.

Assignee: bugsquad => geiger.david68210
CC: (none) => geiger.david68210

Comment 4 David GEIGER 2014-05-10 16:26:58 CEST
bug is now fixed on mga4 and Cauldon too.

Advisory:
========================

Since Mageia 4 'python-pillow' package is a drop-in replacement for PIL, with one detail: The PIL modules now use relative imports between each other, so it is no longer possible to write "import Image" but one needs to write "from PIL import Image".
So we have added a patch to fix this change on 'ocrfeeder' package. This is the reason why 'ocrfeeder' does not start and does not work.
We have also fixed a missing icon in icons-repertory for desktop menu entry.
(/usr/share/icons/hicolor/scalable/apps/ocrfeeder.svg)

========================

Packages in 4/core/updates_testing:
========================
ocrfeeder-0.7.11-4.1.mga4.noarch.rpm


Source RPM: 
========================
ocrfeeder-0.7.11-4.1.mga4.src.rpm


How to test this update request:
========================
- Install 'ocrfeeder' from core/release and see if it starts and runs
normally you must have the message: 

"ImportError: No module named Image"
- Check if in your desktop environment applications menu if icon appear (normally not !).
 
- Install 'ocrfeeder' from core/updates_testing and check if it will start and run now.
- Also check if in your desktop environment applications menu if icon appears now on 'ocrfeeder' entry.

Assignee: geiger.david68210 => qa-bugs
Whiteboard: (none) => has_procedure

Comment 5 Arnaud Vacquier 2014-05-11 01:21:27 CEST
hi,

Mageia x86_64 real hardware :

# urpmi ocrfeeder
Le paquetage ocrfeeder-0.7.11-4.mga4.noarch est déjà installé

$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/site-packages/ocrfeeder/studio/studioBuilder.py", line 21, in <module>
    from ocrfeeder.util import lib
  File "/usr/lib/python2.7/site-packages/ocrfeeder/util/lib.py", line 23, in <module>
    import Image
ImportError: No module named Image

---update---

# urpmi ocrfeeder
Le paquetage ocrfeeder-0.7.11-4.1.mga4.noarch est déjà installé

$ ocrfeeder
Gtk-Message: Failed to load module "canberra-gtk-module"
[aranud@localhost ~]$ 


Okay starting ;)

CC: (none) => aranud

Arnaud Vacquier 2014-05-11 01:22:19 CEST

Whiteboard: has_procedure => has_procedure MGA4-64-OK

Comment 6 Arnaud Vacquier 2014-05-11 02:39:57 CEST
Okay too on Mageia i586 in VB
launch & icon menu same mga4x86-64

Whiteboard: has_procedure MGA4-64-OK => has_procedure MGA4-64-OK MGA4-32-OK

Comment 7 Rémi Verschelde 2014-05-11 08:21:31 CEST
Thanks for your tests Arnaud. The QA tests also involve testing the software for basic functionality to detect obvious regressions. Could you also test that ocrfeeder works as expected?

You could try to analyse the text of this scan for example (found on the Internet): http://omacronides.com/pics/softs/ocr_scan.png

CC: (none) => remi

Comment 8 Arnaud Vacquier 2014-05-11 13:03:11 CEST
run fine, just this many error in terminal :

cat: /tmp/ocrfeeder_T0vif_/tmpsiagBE.txt: Aucun fichier ou dossier de ce type
rm: impossible de supprimer « /tmp/ocrfeeder_T0vif_/tmpsiagBE.txt »: Aucun fichier ou dossier de ce type
Comment 9 Rémi Verschelde 2014-05-12 21:42:32 CEST
I can reproduce the errors noticed by Arnaud, these are not critical, so let's validate the update.

The advisory has been uploaded, please push to 4 core/updates.

Whiteboard: has_procedure MGA4-64-OK MGA4-32-OK => has_procedure MGA4-64-OK MGA4-32-OK advisory
Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 10 Thomas Backlund 2014-05-15 00:22:30 CEST
Update pushed:
http://advisories.mageia.org/MGAA-2014-0114.html

CC: (none) => tmb
Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.