[Sikuli-driver] [Bug 1981614] [NEW] 'RunTime:loadLib: libopencv_java430.so (failed) probably dependent libs missing' error while running sikuli test script in Red hat 7.6 issue

2022-07-13 Thread Rajatesh R
Public bug reported:

Used maven project: My Automation sikuli script: package 
Sikuli1.DesktopProject;[error] Mouse: not useable (blocked)
[error] RunTime:loadLib: libopencv_java430.so (failed) probably dependent libs 
missing:
/home/mglocadmin/.Sikulix/SikulixLibs/libopencv_java430.so: /lib64/libm.so.6: 
version `GLIBC_2.27' not found (required by 
/home/mglocadmin/.Sikulix/SikulixLibs/libopencv_java430.so)
[error] Save your work, correct the problem and restart the IDE!
[error] see: 
https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-Libraries-for-OpenCV-4
TERMINATING: problem with native library: libopencv_java430.so
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.sikuli.script.Pattern.(Pattern.java:128)
at TestCases.SeleniumSikuli.main(SeleniumSikuli.java:15)
Caused by: org.sikuli.script.SikuliXception: fatal: problem with native 
library: libopencv_java430.so
at org.sikuli.script.support.RunTime.terminate(RunTime.java:1140)
at org.sikuli.script.support.RunTime.libsLoad(RunTime.java:1285)
at org.sikuli.script.support.RunTime.loadLibrary(RunTime.java:1434)
at org.sikuli.script.Finder$Finder2.(Finder.java:538)
... 2 more
OS Used: Red Hat (RHEL Version 7.6)...
I am getting error only in this OS version..For the rest of the OSs it is 
working..Please help me out in resolve this issue ASAP.
Code:
package Sikuli1.DesktopProject;

import org.sikuli.script.FindFailed;
import org.sikuli.script.Pattern;
import org.sikuli.script.Screen;

public class SikuliProject {

public static void main(String[] args) throws FindFailed {
Screen s= new Screen();
Pattern QGIS = new Pattern("/home/mglocadmin/Documents/Screenshots/QGIS.png");
Pattern Layer = new Pattern("/home/mglocadmin/Documents/Screenshots/Layer.png");
Pattern CreateLayer = new 
Pattern("/home/mglocadmin/Documents/Screenshots/Createlayer.png");
Pattern ShapeLayer = new 
Pattern("/home/mglocadmin/Documents/Screenshots/ShapeLayer.png");
Pattern Name = new Pattern("/home/mglocadmin/Documents/Screenshots/Name.png");
Pattern Close1 = new 
Pattern("/home/mglocadmin/Documents/Screenshots/Close1.png");
Pattern Close = new Pattern("/home/mglocadmin/Documents/Screenshots/Close.png");
Pattern SelectPoly = new 
Pattern("/home/mglocadmin/Documents/Screenshots/SelectPoly.png");
Pattern Polygon = new 
Pattern("/home/mglocadmin/Documents/Screenshots/Polygon.png");
Pattern OKButton = new 
Pattern("/home/mglocadmin/Documents/Screenshots/OKButton.png");
Pattern Shapepoly = new 
Pattern("/home/mglocadmin/Documents/Screenshots/ShapePolygon.png");
Pattern Message = new 
Pattern("/home/mglocadmin/Documents/Screenshots/message.png");
Pattern Yes = new Pattern("/home/mglocadmin/Documents/Screenshots/Yes.png");
Pattern Shape = new 
Pattern("/home/mglocadmin/Documents/Screenshots/Shape12.png");
s.find(QGIS);
s.click(QGIS);
s.wait(4.0);
s.find(Layer);
s.click(Layer);
s.find(CreateLayer);
s.click(CreateLayer);
s.find(ShapeLayer);
s.click(ShapeLayer);
s.wait(4.0);
s.find(Name);
s.click(Name);
s.type(Name,"ShapePolygon1");
/s.find(Close1);
s.click(Close1);/
s.find(SelectPoly);
s.click(SelectPoly);
s.find(Polygon);
s.click(Polygon);
s.find(OKButton);
s.click(OKButton);
s.wait(4.0);
if(s.exists(Message) != null)
{
System.out.println("PASS");
}
else
{
System.out.println("FAIL");
}
s.find(Yes);
s.click(Yes);
s.wait(4.0);
if(s.exists(Shape) != null)
{
System.out.println("PASS");
}
else
{
System.out.println("FAIL");
}
//System.out.println(s.find(Shapepoly).getText());
s.find(Close);
s.click(Close);
}

}

** Affects: sikuli
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to SikuliX.
https://bugs.launchpad.net/bugs/1981614

Title:
  'RunTime:loadLib: libopencv_java430.so (failed) probably dependent
  libs missing' error while running sikuli test script in Red hat 7.6
  issue

Status in SikuliX:
  New

Bug description:
  Used maven project: My Automation sikuli script: package 
Sikuli1.DesktopProject;[error] Mouse: not useable (blocked)
  [error] RunTime:loadLib: libopencv_java430.so (failed) probably dependent 
libs missing:
  /home/mglocadmin/.Sikulix/SikulixLibs/libopencv_java430.so: /lib64/libm.so.6: 
version `GLIBC_2.27' not found (required by 
/home/mglocadmin/.Sikulix/SikulixLibs/libopencv_java430.so)
  [error] Save your work, correct the problem and restart the IDE!
  [error] see: 
https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-Libraries-for-OpenCV-4
  TERMINATING: problem with native library: libopencv_java430.so
  Exception in thread "main" java.lang.ExceptionInInitializerError
  at org.sikuli.script.Pattern.(Pattern.java:128)
  at TestCases.SeleniumSikuli.main(SeleniumSikuli.java:15)
  Caused by: org.sikuli.script.SikuliXception: fatal: problem with native 
library: libopencv_java430.so
  at org.sikuli.script.support.RunTime.terminate(RunTime.java:1140)
  at org.sikuli.script.support.RunTime.libsLoad(RunTime.java:1285)
  at 

[Sikuli-driver] [Bug 1981613] [NEW] Not able to install the Sikulix setup 1.1.3 jar in Linux

2022-07-13 Thread Rajatesh R
Public bug reported:

Url to download the Sikulix setup 1.1.3 jar : 
https://launchpad.net/sikuli/+download
Command used to install Sikulix setup 1.1.3 jar -->java -jar Sikulix setup 
1.1.3 jar
While installing sikulix setup 1.1.3 jar, i am getting the error as 'Something 
serious happened! Sikuli Not Usable'... Check the error log

[debug (13/07/22, 10:47:42 PM)] RunSetup:
popAsk: 
You have for Linux native libs
/home/mglocadmin/.Sikulix/SikulixDownloads/sikulixlibslux-1.1.1.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
[debug (13/07/22, 10:47:43 PM)] RunSetup: Copied from Downloads: sikulixlibslux
[debug (13/07/22, 10:47:43 PM)] RunSetup: checking usability of bundled, 
provided or built libs
[debug (13/07/22, 10:47:43 PM)] RunTimeSETUP: exists libs folder at: 
/home/mglocadmin/.Sikulix/SikulixLibs_201807110819
[error (13/07/22, 10:47:43 PM)] RunTimeSETUP: loadLib: libVisionProxy.so not 
usable:
java.lang.UnsatisfiedLinkError: 
/home/mglocadmin/.Sikulix/SikulixLibs_201807110819/libVisionProxy.so: 
libopencv_core.so.2.4: cannot open shared object file: No such file or directory
[error (13/07/22, 10:47:43 PM)] RunTimeSETUP: loadLib: libVisionProxy.so not 
usable:
java.lang.UnsatisfiedLinkError: 
/home/mglocadmin/.Sikulix/SikulixLibs_201807110819/libVisionProxy.so: 
libopencv_core.so.2.4: cannot open shared object file: No such file or directory
[debug (13/07/22, 10:47:43 PM)] LinuxSupport: we have to build libVisionProxy.so
[debug (13/07/22, 10:47:43 PM)] LinuxSupport: checking: availability of OpenCV 
and Tesseract
[debug (13/07/22, 10:47:43 PM)] LinuxSupport: checking: scanning loader cache 
(ldconfig -p)
[debug (13/07/22, 10:47:43 PM)] RunTimeSETUP: ldconfig -p
[debug (13/07/22, 10:47:43 PM)] LinuxSupport: checking: found OpenCV libs:
/lib/x86_64-linux-gnu/libopencv_core.so.4.2
/lib/x86_64-linux-gnu/libopencv_highgui.so.4.2
/lib/x86_64-linux-gnu/libopencv_imgproc.so.4.2
[debug (13/07/22, 10:47:43 PM)] LinuxSupport: checking: found Tesseract lib:
/lib/x86_64-linux-gnu/libtesseract.so.4
[debug (13/07/22, 10:47:43 PM)] LinuxSupport: buildVision: starting inline 
build: libVisionProxy.so
[debug (13/07/22, 10:47:43 PM)] LinuxSupport: buildVision: java.home from java 
props: /usr/lib/jvm/java-11-openjdk-amd64
[debug (13/07/22, 10:47:43 PM)] LinuxSupport: buildVision: JAVA_HOME from 
environment: null
[error (13/07/22, 10:47:43 PM)] LinuxSupport: buildVision: no valid Java JDK 
available nor found
[error (13/07/22, 10:47:43 PM)] RunTimeSETUP: Problematic lib: 
/home/mglocadmin/.Sikulix/SikulixLibs_201807110819/libVisionProxy.so 
(...TEMP...)
[error (13/07/22, 10:47:43 PM)] RunTimeSETUP: libVisionProxy.so loaded, but it 
might be a problem with needed dependent libraries
ERROR: ...TEMP...: libopencv_core.so.2.4: cannot open shared object file: No 
such file or directory
[error (13/07/22, 10:47:43 PM)] RunSetup: libVisionproxy.so finally not useable
[error (13/07/22, 10:47:43 PM)] RunSetup: Giving up!
[error (13/07/22, 10:47:43 PM)] RunSetup: ... terminated abnormally :-(
[debug (13/07/22, 10:47:43 PM)] RunSetup:
popError: 
Something serious happened! Sikuli not useable!
Check the error log at /home/mglocadmin/SikuliX-1.1.3-SetupLog.txt

** Affects: sikuli
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to SikuliX.
https://bugs.launchpad.net/bugs/1981613

Title:
  Not able to install the Sikulix setup 1.1.3 jar in Linux

Status in SikuliX:
  New

Bug description:
  Url to download the Sikulix setup 1.1.3 jar : 
https://launchpad.net/sikuli/+download
  Command used to install Sikulix setup 1.1.3 jar -->java -jar Sikulix setup 
1.1.3 jar
  While installing sikulix setup 1.1.3 jar, i am getting the error as 
'Something serious happened! Sikuli Not Usable'... Check the error log

  [debug (13/07/22, 10:47:42 PM)] RunSetup:
  popAsk: 
  You have for Linux native libs
  /home/mglocadmin/.Sikulix/SikulixDownloads/sikulixlibslux-1.1.1.jar
  Click YES, if you want to use this for setup processing
  ... or click NO, to ignore it and download a fresh copy
  [debug (13/07/22, 10:47:43 PM)] RunSetup: Copied from Downloads: 
sikulixlibslux
  [debug (13/07/22, 10:47:43 PM)] RunSetup: checking usability of bundled, 
provided or built libs
  [debug (13/07/22, 10:47:43 PM)] RunTimeSETUP: exists libs folder at: 
/home/mglocadmin/.Sikulix/SikulixLibs_201807110819
  [error (13/07/22, 10:47:43 PM)] RunTimeSETUP: loadLib: libVisionProxy.so not 
usable:
  java.lang.UnsatisfiedLinkError: 
/home/mglocadmin/.Sikulix/SikulixLibs_201807110819/libVisionProxy.so: 
libopencv_core.so.2.4: cannot open shared object file: No such file or directory
  [error (13/07/22, 10:47:43 PM)] RunTimeSETUP: loadLib: libVisionProxy.so not 
usable:
  java.lang.UnsatisfiedLinkError: 

Re: [Sikuli-driver] [Question #702129]: [2.0.4] [error] ImagePath: find: not there: when importing module with image paths added

2022-07-13 Thread Launchpad Janitor
Question #702129 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702129

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #702351]: Reading image text

2022-07-13 Thread Ben Dix
Question #702351 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702351

Ben Dix posted a new comment:
hi,
i also had some trouble.
I get much better results using a whitelist for letters and numbers.
this was how I setup my whitelist on Mac, added "." and "x" for your needs:

OCR.globalOptions().variable("tessedit_char_whitelist", "0123456789.x")

good luck

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp