Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542172 - app-text/tesseract-3.03_rc1 - Error opening data file /usr/share/tesseract-ocr/tessdata/eng.traineddata
Summary: app-text/tesseract-3.03_rc1 - Error opening data file /usr/share/tesseract-oc...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Thomas Kahle (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-04 19:29 UTC by Fab
Modified: 2015-03-10 00:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info.txt,5.98 KB, text/plain)
2015-03-04 19:29 UTC, Fab
Details
3.03_rc1 build.log (tesseract-3.03_rc1:20150304-173613.log,741.56 KB, text/plain)
2015-03-04 19:30 UTC, Fab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fab 2015-03-04 19:29:00 UTC
Created attachment 398080 [details]
emerge --info

Hi,

On my stable system with LINGUAS="fr", app-text/tesseract-3.03_rc1 fails to run with :
> Error opening data file /usr/share/tesseract-ocr/tessdata/eng.traineddata
> Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
> Failed loading language 'eng'
> Tesseract couldn't load any languages!
> Failed to initialize tesseract (OCR).

Ubuntu bug [1].

This seems to be an upstream bug and seems to be fixed since svn r822 which is
git commit 42c92c3e29d35e4978defde395b7e622cf9564de [2].

Downgrading to previous stable 3.02-r1 helped me to workaround the problem.

[1] https://bugs.launchpad.net/ubuntu/+source/tesseract/+bug/1189995
[2] https://code.google.com/p/tesseract-ocr/source/detail?r=42c92c3e29d35e4978defde395b7e622cf9564de
Comment 1 Fab 2015-03-04 19:30:36 UTC
Created attachment 398082 [details]
3.03_rc1 build.log
Comment 2 Fab 2015-03-07 07:21:39 UTC
In mu first post you should read :
> svn 811
instead of :
> svn 822
Comment 3 Fab 2015-03-07 07:53:00 UTC
After reading the build.log and the some part of the code, I'm not sure anymore this is the same issue. Patch does not apply since code is different, and according to the build.log «eng.traineddata» is installed.
Comment 4 Thomas Kahle (RETIRED) gentoo-dev 2015-03-09 12:34:19 UTC
I tried different french locales, but I can't reproduce the problem.
The training data are installed in /usr/share/tessdata.  Do you have some local configuration that makes it search in some other directory?
Comment 5 Fab 2015-03-10 00:28:16 UTC
No, I don't have any local configuration.
But after investigating I think it is simply not your problem.
See https://github.com/ruediger/VobSub2SRT/issues/45
Sorry for the inconvenience.
Closing as invalid.