[1.0.1] tessdata folder not found after setup with option 5

Asked by Eugene S

Hi,

I have installed the new version of Sikuli (1.0.1) according to these recommendations by RaiMan:
https://answers.launchpad.net/sikuli/+question/234061

Everything seemed fine, before I have tried to use the text recognition utilities.
After running my script, I have received the following error:

[error] TextRecognizer: init: tessdata folder not found at C:/SikuliX/libs/

After all subsequent attempts to use text recognition (within the same script run), the error appeared few more times but with no path specified, like that:

[error] TextRecognizer: init: tessdata folder not found at

When I have checked the abovementioned path, I haven't found the tessdata folder as it was indicated by the error.
My solution was to copy the tessdata folder from my previous Sikuli version (1.0.0) folder. After this done, the script ran successfully.

Is that a bug or just a side effect of the non-standard installation?

Thanks!
Eugene

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Eugene S
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

If you want to use the TextRecognition features, you have to select option 5 at setup time.

This will download sikuli-tessdata-1.0.1.jar (contains the stuff) and integrate the tessdata folder.
I did this to better support the use of Tesseract in the future (updates, language support, ...)

Currently option 5 is only an add-on for the the initial setup of options 1 ... 4. This will be revised the next time, to make it possible to run it with an update.
But feel free, to rerun the setup at any time.

But what you did is ok as a workaround.

Revision history for this message
Eugene S (shragovich) said :
#2

Thanks RaiMan!

If just copying the folder from my previous Sikuli folder\version is fine, I will just leave that as is right now. But I will pay attention at that in the next update.

Thanks,
Eugene

Revision history for this message
Alex Rea (amplitude) said :
#3

I checked options 1, 3 and 5 at setup time, and am seeing this same error. There is no tessdata folder in C:/sikuli/libs as the error claims, but I don't see how to obtain these data. Running on Windows 7.

Revision history for this message
RaiMan (raimund-hocke) said :
#4

@Alex
could you send the SikuliX-1.0.1-SetupLog.txt to my mail at https://launchpad.net/~raimund-hocke

Revision history for this message
RaiMan (raimund-hocke) said :
#5

@Alex
confirmed, is a bug.
workaround: see linked bug

Revision history for this message
azharuddin (azhar-avi) said :
#6

HI RaiMan,

i have created a automation tool using sikuli, but something got changed and i am getting this error.

[ ERROR ] Error in file 'C:\Sanity_Automation\Work_Project\robot_suite\Sanity_Run.txt' in table 'Settings': Importing test library 'TestCreator.TestCreator' failed: UnsatisfiedLinkError: C:\Sanity_Aut
omation\Sikuli_X\libs\VisionProxy.dll: The network path was not found
PYTHONPATH: [u'C:\\Sanity_Automation\\Work_Project\\General_Utilities.sikuli', 'C:\\Sanity_Automation\\Work_Project\\robotframework-2.6.3.jar\\Lib\\robot\\libraries', 'C:\\Sanity_Automation\\Sikuli_X\
\sikuli-script.jar\\Lib', 'C:\\Sanity_Automation\\Work_Project\\Lib', 'C:\\Sanity_Automation\\Work_Project\\robotframework-2.6.3.jar\\Lib', '__classpath__', '__pyclasspath__/', '.']
CLASSPATH: C:\Sanity_Automation\Work_Project\robotframework-2.6.3.jar;C:\Sanity_Automation\Sikuli_X\sikuli-script.jar
java.lang.UnsatisfiedLinkError:
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.load0(Unknown Source)
        at java.lang.System.load(Unknown Source)
        at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
        at org.sikuli.script.Finder.<clinit>(Finder.java:28)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sikuli.Sikuli$py.f$0(C:\Sanity_Automation\Sikuli_X\sikuli-script.jar\Lib\sikuli\Sikuli.py:209)
        at sikuli.Sikuli$py.call_function(C:\Sanity_Automation\Sikuli_X\sikuli-script.jar\Lib\sikuli\Sikuli.py)
        at sikuli$py.f$0(C:\Sanity_Automation\Sikuli_X\sikuli-script.jar\Lib\sikuli\__init__.py:1)
        at sikuli$py.call_function(C:\Sanity_Automation\Sikuli_X\sikuli-script.jar\Lib\sikuli\__init__.py)
        at logger$py.f$0(.\logger.py:140)
        at logger$py.call_function(.\logger.py)
        at sikuliwrapper$py.f$0(.\sikuliwrapper.py:162)
        at sikuliwrapper$py.call_function(.\sikuliwrapper.py)
        at TestMachineData$py.f$0(.\TestMachineData.py:8)
        at TestMachineData$py.call_function(.\TestMachineData.py)
        at packageLibrary$py.f$0(.\packageLibrary.py:67)
        at packageLibrary$py.call_function(.\packageLibrary.py)
        at TestCreator$py.f$0(.\TestCreator.py:50)
        at TestCreator$py.call_function(.\TestCreator.py)
        at robot.utils.importing$py._dotted_import$6(/home/mkorpela/workspace/robot263/tmp-jar-dir/Lib/robot/utils/importing.py:117)
        at robot.utils.importing$py.call_function(/home/mkorpela/workspace/robot263/tmp-jar-dir/Lib/robot/utils/importing.py)
        at robot.utils.importing$py.import_$4(/home/mkorpela/workspace/robot263/tmp-jar-dir/Lib/robot/utils/importing.py:79)
        at robot.utils.importing$py.call_function(/home/mkorpela/workspace/robot263/tmp-jar-dir/Lib/robot/utils/importing.py)
        at robot.jarrunner$py.run$2(/home/mkorpela/workspace/robot263/tmp-jar-dir/Lib/robot/jarrunner.py:29)
        at robot.jarrunner$py.call_function(/home/mkorpela/workspace/robot263/tmp-jar-dir/Lib/robot/jarrunner.py)
        at org.robotframework.RobotFramework.run(RobotFramework.java:43)
        at org.robotframework.RobotFramework.main(RobotFramework.java:29)

i have verified the Env path. it goes like this:

path : C:\Program Files (x86)\Java\jre6\bin; C:\Sanity_Automation\Sikuli_X\libs; C:\Sanity_Automation\Python272; C:\Sanity_Automation\Python272\Scripts; C:\Sanity_Automation\Jython251

Sikuli_HOME: C:\Sanity_Automation\Sikuli_X\

system path is same as path mentioned above.

kindle help. its urgent. thanks in advance.

Revision history for this message
RaiMan (raimund-hocke) said :
#7

this is RC3.
I do not support this any more according to these system specific errors. Sorry.

*** but something got changed
… so you have to track back, what might have changed.

Revision history for this message
RaiMan (raimund-hocke) said :
#8

… and it is not helpful, to add a question as comment to another question, that even does not fit.