Public bug reported:

I installed ocrfeeder, and then found it in the menu "Office"
("Graphics" was my first guess, but...).

When I invoced it, there was a flash of a window, and then it was gone.

I immediately opened a terminal and typed "ocrfeeder", which succeeded.

I keep forgetting that I need to invoke it with the terminal... 
I looked at the .desktop file Properties, and found that it calls: "ocrfeeder 
-i %f"
When I enter that in the terminal, the invocation fails, and the following is 
printed to stderr:
"
scott@scott-Asus-M2M68-AM-Plus:~$ ocrfeeder -i %f
Traceback (most recent call last):
  File "/usr/bin/ocrfeeder", line 36, in <module>
    studio = Studio()
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py", 
line 133, in __init__
    self.__addImagesToReviewer(imgs)
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py", 
line 330, in __addImagesToReviewer
    self.source_images_controler.addImages(images)
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/widgetModeler.py", 
line 322, in addImages
    temp_dir)
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/util/graphics.py", line 213, 
in convertMultiImagesInList
    converted_images = convertMultiImage(image_list[i], temp_dir)
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/util/graphics.py", line 187, 
in convertMultiImage
    if imghdr.what(image_path) != 'tiff':
  File "/usr/lib/python2.7/imghdr.py", line 14, in what
    f = open(file, 'rb')
IOError: [Errno 2] No such file or directory: '%f'
"

With just "ocrfeeder", the output is (not counting the correctly opening and 
functioning window):
"
scott@scott-Asus-M2M68-AM-Plus:~$ ocrfeeder
Processing sheet #1: /tmp/ocrfeeder_QT2bJw/page0030_orig.pnm -> 
/tmp/ocrfeeder_QT2bJw/page0030.pnm
out of deviation range - NO ROTATING

(ocrfeeder:2048): Gtk-CRITICAL **: gtk_widget_realize: assertion 
'widget->priv->anchored || GTK_IS_INVISIBLE (widget)' failed
>>>>>>>> 28 22 1746 959
>>>>>>>> 28 22 1746 959
>>>>>>>> 29 12 1746 959
Processing sheet #1: /tmp/ocrfeeder_QT2bJw/page0031_orig.pnm -> 
/tmp/ocrfeeder_QT2bJw/page0031.pnm
out of deviation range - NO ROTATING

(ocrfeeder:2048): Gtk-CRITICAL **: gtk_widget_realize: assertion 
'widget->priv->anchored || GTK_IS_INVISIBLE (widget)' failed
>>>>>>>> 40 119 1590 1354
>>>>>>>> 40 119 1590 1354
>>>>>>>> 42 109 1590 1354
"

(I include this as well, in case the output contains something else you
think ought to be looked at...)

For my own use, I will remove the "-i %f"from the .desktop file Properties, so 
I can use the menu entry.
I imagine that is what needs to be done to the package file as well.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: ocrfeeder 0.8.1-2
ProcVersionSignature: Ubuntu 4.2.0-23.28-generic 4.2.6
Uname: Linux 4.2.0-23-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.19.1-0ubuntu5
Architecture: i386
CurrentDesktop: LXDE
Date: Mon Jan 11 22:15:19 2016
PackageArchitecture: all
SourcePackage: ocrfeeder
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ocrfeeder (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 wily

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1533039

Title:
  Menu invocation fails, as .desktop file calls with -i %f, but there is
  no image.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ocrfeeder/+bug/1533039/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to