You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



OCRFeeder failing to access /tmp

Author (Read 6488 times)

0 Members and 1 Guest are viewing this topic.

Re: OCRFeeder failing to access /tmp
« Reply #10 on: January 22, 2019, 05:45:31 PM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 79
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

  • Kernel: 5.x
OMG it was tesseract all the time.  Days of trying to get this work and the problem was the OCRFeeder synaptics package installs the tesseract ocr program as a dependency but no language packs except for English.  I was trying to OCR a German file.  And tesseract had no output to indicate a missing language file.  Crazy.

Just on a hunch I went to synaptics and searched on tesseract there are dozens of language files, but only English was installed.  I installed the German file and now it works fine.

There is a tesseract-ocr-all package but OCRFeeder doesn't install that, it just installs tesseract-ocr.

Wow, couple days wasted, but oh well at least it works now.
   :o
 

Re: OCRFeeder failing to access /tmp
« Reply #9 on: January 22, 2019, 05:33:24 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Sorry I don't use OCR programs but perhaps some of the following links may point in a direction, if you haven't...
Quick Reads:  DPI settings can make a difference, Command being in the PATH, mics configuration tweaks..??...

https://ubuntuforums.org/showthread.php?t=2158633

https://askubuntu.com/questions/644217/ocrfeeder-doesnt-detect-anything

https://medium.freecodecamp.org/getting-started-with-tesseract-part-i-2a6a6b1cf75e

https://stackoverflow.com/questions/35609773/oserror-errno-2-no-such-file-or-directory-using-pytesser
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: OCRFeeder failing to access /tmp
« Reply #8 on: January 22, 2019, 05:05:59 PM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 79
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

  • Kernel: 5.x
OCRFeeder is a front-end for OCR.  It calls tesseract by default to do the actual OCR.  This is when the /tmp file errors are encountered.

It seems tesseract creates tmpfiles somewhere else than the OCRFeeder frontend or can't write to the OCRFeeder tmp directory.

When OCRFeeder, starts, it does create a directory in /tmp so that is ok.  But when tesseract runs the OCR, it doesn't write the files in the OCRFeeder tmp directory.

Any suggestions?
 

Re: OCRFeeder failing to access /tmp
« Reply #7 on: January 21, 2019, 09:53:02 PM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 79
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

  • Kernel: 5.x
Is it something you have to run as root?

Code: [Select]
sudo ocrfeeder
You might to edit permissions for that application.

One of the first things I did was to try running as root, but didn't help.  I think it's something to do with systemd and the way it handles private /tmp.  I have no understanding of it though.  I just want to install from Synaptic and run the program.  I've tried to find a solution all day.  It's frustrating but thanks for the suggestion. 

Can someone tell me how to turn off private /tmp for programs?  I know it's there for security but it's keeping me from doing my OCR work I need to do.
« Last Edit: January 21, 2019, 09:54:48 PM by timbuck2 »
 

Re: OCRFeeder failing to access /tmp
« Reply #6 on: January 21, 2019, 08:22:55 PM »
 

Artim

  • Always Learning
  • PayPal Supporter
  • Gold Level Poster
  • *****
  • 541
    Posts
  • Reputation: 67
  • Lieutenant Commander, Confederate Space Force
    • View Profile
    • Confessions of a Technophobe

  • CPU: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz

  • MEMORY: 3Gb

  • VIDEO CARD: Mobile GM965/GL960 Integrated Graphics Controller

  • Kernel: 5.x
Is it something you have to run as root?

Code: [Select]
sudo ocrfeeder
You might to edit permissions for that application.
 

Re: OCRFeeder failing to access /tmp
« Reply #5 on: January 21, 2019, 09:26:36 AM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 79
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

  • Kernel: 5.x
When I installed OCRFeeder from synaptics I did allow all dependencies to install at the same time.  It was a standard install from Synaptics.

I'm not sure why it can't write to /tmp.  I think it has something to do with systemd which I don't know how to adjust.  I hope someone with more knowledge than myself can offer some help.

 

Re: OCRFeeder failing to access /tmp
« Reply #4 on: January 20, 2019, 09:17:10 PM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 79
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

  • Kernel: 5.x
When I installed it I just went to "System->Install/Remove Sofware" from the whisper menu and searched on OCRfeeder from the synaptic package manager and installed that way.  Didn't do anything out of the ordinary.

I don't see any option to "Install Recommended"

« Last Edit: January 20, 2019, 09:21:54 PM by timbuck2 »
 

Re: OCRFeeder failing to access /tmp
« Reply #3 on: January 20, 2019, 09:03:25 PM »
 

Artim

  • Always Learning
  • PayPal Supporter
  • Gold Level Poster
  • *****
  • 541
    Posts
  • Reputation: 67
  • Lieutenant Commander, Confederate Space Force
    • View Profile
    • Confessions of a Technophobe

  • CPU: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz

  • MEMORY: 3Gb

  • VIDEO CARD: Mobile GM965/GL960 Integrated Graphics Controller

  • Kernel: 5.x
How did you install OCRFeeder?  Using Lite Software usually solves "dependencies" which are missing pieces of other software that the other needs.  Forgive me if I have assumed too much.  If OCRFeeder is missing dependencies, you can open Synaptoc Package Manager (Menu -> System _> Add/Remove Software), find OCRFeeder and highlight it, then selct "Install Recommended."  Let us know!
 

Re: OCRFeeder failing to access /tmp
« Reply #2 on: January 20, 2019, 08:39:37 PM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 79
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

  • Kernel: 5.x
Looks like OCRFeeder is using python.  I know nothing about tmpfs, private /tmp, and systemd.  Can someone help me get this program to work?
 

OCRFeeder failing to access /tmp
« Reply #1 on: January 20, 2019, 03:33:12 PM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 79
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

  • Kernel: 5.x
I am trying to OCR a document using OCRFeeder, but when I press the OCR button I get an error and it won't function

Code: [Select]
cat: /tmp/ocrfeeder_AdxiAl/tmpPBzAcp.txt: No such file or directory
rm: cannot remove '/tmp/ocrfeeder_AdxiAl/tmpPBzAcp.txt': No such file or directory
cat: /tmp/ocrfeeder_AdxiAl/tmpwS9kbK.txt: No such file or directory
rm: cannot remove '/tmp/ocrfeeder_AdxiAl/tmpwS9kbK.txt': No such file or directory

I'm assuming it can't write to /tmp for some reason.  I tried running as root, but it had the same error. What can I try to fix this?
« Last Edit: January 22, 2019, 05:45:55 PM by timbuck2 »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section