Re: [Sikuli-driver] [Question #689693]: Java 15: Windows 10 image issues
Question #689693 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689693 RaiMan proposed the following answer: On Windows, there is no need to for any additional libraries - everything packed in the jar. All you need to know: https://raiman.github.io/SikuliX1/downloads.html -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ 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 #689653]: HTMLTestRunner import problem "syntax - mismatched input"
Question #689653 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689653 RaiMan proposed the following answer: I guess the problem comes from import unittest which is not needed with HTMLTestRunner (is already imported here). -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ 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 #689685]: No X11 DISPLAY variable was set, but this program performed an operation which requires it. (Using Gitlab)
Question #689685 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689685 RaiMan posted a new comment: Exactly this was missing when run from GitLab: Error: No X11 DISPLAY variable was set, but this program performed an operation which requires it. So be happy to have solved it ;-) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ 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 #689737]: OCR does not install on ubuntu 18.04
Question #689737 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689737 Status: Open => Answered RaiMan proposed the following answer: tess4j is not the problem. It is bundled with SikuliX. The problem comes from the tesseract library. As mentioned in the link, tesseract 4.0.0 does not work, it must be a version 4.1.x. At the link there is an example, that was tested, to get a version 4.1.0 -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ 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
[Sikuli-driver] [Question #689737]: OCR does not install on ubuntu 18.04
New question #689737 on Sikuli: https://answers.launchpad.net/sikuli/+question/689737 When I try to use text() on a region in ubuntu 18.04 I get the following error... [error] see: https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-libraries-for-Tess4J-Tesseract-4-OCR [error] Save your work, correct the problem and restart the IDE! tesseract - v gives me tesseract 4.0.0-beta.1 leptonica-1.75.3 libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.2) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0 Found AVX2 Found AVX Found SSE I notice that I had not run ldconfig however on doing so I get this error [error] java.lang.NoClassDefFoundError ( java.lang.NoClassDefFoundError: Could not initialize class net.sourceforge.tess4j.Tesseract1 ) I have downloaded tess4j but it isn't clear what if any the manual step is to make it available to jython/sikuli-ide -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ 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 #689653]: HTMLTestRunner import problem "syntax - mismatched input"
Question #689653 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689653 Christoph posted a new comment: The syntax error disappeared in a magic way. I don't know the reason for that. However I get a different error now: [debug] Runing test A [error] script [ test ] stopped with error at line --unknown-- [error] --UnKnown-- ( --UnKnown-- ) [debug] RunTime:* running cleanUp * when I run the following minimalistic script: import HTMLTestRunner import unittest class UITestCases(unittest.TestCase): def test_A(self): Debug.info('Runing test A') suite = unittest.TestLoader().loadTestsFromTestCase(UITestCases) outfile = open("results.html", "w") runner = HTMLTestRunner.HTMLTestRunner(stream = outfile, title = 'test testreport', description = 'NEW').run(suite) Pros: I get a correct html report. But I wonder what the unknown error is about. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ 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
[Sikuli-driver] [Bug 1871026] Re: [2.0.4] IDE: on exit: Exception in ShutDownHook --- can be ignored --- fixed in 2.0.5
ok -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1871026 Title: [2.0.4] IDE: on exit: Exception in ShutDownHook --- can be ignored --- fixed in 2.0.5 Status in Sikuli: New Bug description: Installed 2.0.4-2020-03-14_08:01/Mac10.15.3/Java13(64)13.0.1+9 Tried 3 Script Files Script ran ok on exit(0) Result Exception in thread "Thread-0" java.lang.IllegalStateException: Shutdown in progress at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66) at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:213) at java.prefs/java.util.prefs.MacOSXPreferencesFile.timer(MacOSXPreferencesFile.java:357) at java.prefs/java.util.prefs.MacOSXPreferencesFile.markChanged(MacOSXPreferencesFile.java:291) at java.prefs/java.util.prefs.MacOSXPreferencesFile.addNode(MacOSXPreferencesFile.java:367) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:115) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:86) at java.prefs/java.util.prefs.MacOSXPreferences.getUserRoot(MacOSXPreferences.java:59) at java.prefs/java.util.prefs.MacOSXPreferencesFactory.userRoot(MacOSXPreferencesFactory.java:31) at java.prefs/java.util.prefs.Preferences.userRoot(Preferences.java:457) at java.prefs/java.util.prefs.Preferences.userNodeForPackage(Preferences.java:371) at org.sikuli.basics.PreferencesUser.(PreferencesUser.java:53) at org.sikuli.basics.PreferencesUser.get(PreferencesUser.java:57) at org.sikuli.script.support.RunTime.cleanUp(RunTime.java:1350) at org.sikuli.script.support.RunTime.runShutdownHook(RunTime.java:1364) at org.sikuli.script.support.RunTime.access$000(RunTime.java:42) at org.sikuli.script.support.RunTime$3.run(RunTime.java:1056) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1871026/+subscriptions ___ 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
[Sikuli-driver] [Bug 1871026] Re: [2.0.4] IDE: on exit: Exception in ShutDownHook .-
this problem can simply be ignored. Does not do any harm. will be fixed in 2.0.5 ** Summary changed: - Exception in thread + [2.0.4] IDE: on exit: Exception in ShutDownHook .- ** Summary changed: - [2.0.4] IDE: on exit: Exception in ShutDownHook .- + [2.0.4] IDE: on exit: Exception in ShutDownHook --- can be ignored --- fixed in 2.0.5 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1871026 Title: [2.0.4] IDE: on exit: Exception in ShutDownHook --- can be ignored --- fixed in 2.0.5 Status in Sikuli: New Bug description: Installed 2.0.4-2020-03-14_08:01/Mac10.15.3/Java13(64)13.0.1+9 Tried 3 Script Files Script ran ok on exit(0) Result Exception in thread "Thread-0" java.lang.IllegalStateException: Shutdown in progress at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66) at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:213) at java.prefs/java.util.prefs.MacOSXPreferencesFile.timer(MacOSXPreferencesFile.java:357) at java.prefs/java.util.prefs.MacOSXPreferencesFile.markChanged(MacOSXPreferencesFile.java:291) at java.prefs/java.util.prefs.MacOSXPreferencesFile.addNode(MacOSXPreferencesFile.java:367) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:115) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:86) at java.prefs/java.util.prefs.MacOSXPreferences.getUserRoot(MacOSXPreferences.java:59) at java.prefs/java.util.prefs.MacOSXPreferencesFactory.userRoot(MacOSXPreferencesFactory.java:31) at java.prefs/java.util.prefs.Preferences.userRoot(Preferences.java:457) at java.prefs/java.util.prefs.Preferences.userNodeForPackage(Preferences.java:371) at org.sikuli.basics.PreferencesUser.(PreferencesUser.java:53) at org.sikuli.basics.PreferencesUser.get(PreferencesUser.java:57) at org.sikuli.script.support.RunTime.cleanUp(RunTime.java:1350) at org.sikuli.script.support.RunTime.runShutdownHook(RunTime.java:1364) at org.sikuli.script.support.RunTime.access$000(RunTime.java:42) at org.sikuli.script.support.RunTime$3.run(RunTime.java:1056) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1871026/+subscriptions ___ 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
[Sikuli-driver] [Bug 1871026] Re: Exception in thread
So changed first line in script to exit(0) so that script did nothing ran : java -jar /Users/Jeff/Documents/SikuliX/Sikulix-Current.jar -r /Users/Jeff/Documents/Sikuli_Live/SikuliScripts/Vikings/Code/Command_File.sikuli result :- [info] Exit code: 0 Exception in thread "Thread-0" java.lang.IllegalStateException: Shutdown in progress at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66) at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:213) at java.prefs/java.util.prefs.MacOSXPreferencesFile.timer(MacOSXPreferencesFile.java:357) at java.prefs/java.util.prefs.MacOSXPreferencesFile.markChanged(MacOSXPreferencesFile.java:291) at java.prefs/java.util.prefs.MacOSXPreferencesFile.addNode(MacOSXPreferencesFile.java:367) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:115) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:86) at java.prefs/java.util.prefs.MacOSXPreferences.getUserRoot(MacOSXPreferences.java:59) at java.prefs/java.util.prefs.MacOSXPreferencesFactory.userRoot(MacOSXPreferencesFactory.java:31) at java.prefs/java.util.prefs.Preferences.userRoot(Preferences.java:457) at java.prefs/java.util.prefs.Preferences.userNodeForPackage(Preferences.java:371) at org.sikuli.basics.PreferencesUser.(PreferencesUser.java:53) at org.sikuli.basics.PreferencesUser.get(PreferencesUser.java:57) at org.sikuli.script.support.RunTime.cleanUp(RunTime.java:1350) at org.sikuli.script.support.RunTime.runShutdownHook(RunTime.java:1364) at org.sikuli.script.support.RunTime.access$000(RunTime.java:42) at org.sikuli.script.support.RunTime$3.run(RunTime.java:1056) -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1871026 Title: [2.0.4] IDE: on exit: Exception in ShutDownHook --- can be ignored --- fixed in 2.0.5 Status in Sikuli: New Bug description: Installed 2.0.4-2020-03-14_08:01/Mac10.15.3/Java13(64)13.0.1+9 Tried 3 Script Files Script ran ok on exit(0) Result Exception in thread "Thread-0" java.lang.IllegalStateException: Shutdown in progress at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66) at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:213) at java.prefs/java.util.prefs.MacOSXPreferencesFile.timer(MacOSXPreferencesFile.java:357) at java.prefs/java.util.prefs.MacOSXPreferencesFile.markChanged(MacOSXPreferencesFile.java:291) at java.prefs/java.util.prefs.MacOSXPreferencesFile.addNode(MacOSXPreferencesFile.java:367) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:115) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:86) at java.prefs/java.util.prefs.MacOSXPreferences.getUserRoot(MacOSXPreferences.java:59) at java.prefs/java.util.prefs.MacOSXPreferencesFactory.userRoot(MacOSXPreferencesFactory.java:31) at java.prefs/java.util.prefs.Preferences.userRoot(Preferences.java:457) at java.prefs/java.util.prefs.Preferences.userNodeForPackage(Preferences.java:371) at org.sikuli.basics.PreferencesUser.(PreferencesUser.java:53) at org.sikuli.basics.PreferencesUser.get(PreferencesUser.java:57) at org.sikuli.script.support.RunTime.cleanUp(RunTime.java:1350) at org.sikuli.script.support.RunTime.runShutdownHook(RunTime.java:1364) at org.sikuli.script.support.RunTime.access$000(RunTime.java:42) at org.sikuli.script.support.RunTime$3.run(RunTime.java:1056) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1871026/+subscriptions ___ 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
[Sikuli-driver] [Bug 1871026] [NEW] Exception in thread
Public bug reported: Installed 2.0.4-2020-03-14_08:01/Mac10.15.3/Java13(64)13.0.1+9 Tried 3 Script Files Script ran ok on exit(0) Result Exception in thread "Thread-0" java.lang.IllegalStateException: Shutdown in progress at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66) at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:213) at java.prefs/java.util.prefs.MacOSXPreferencesFile.timer(MacOSXPreferencesFile.java:357) at java.prefs/java.util.prefs.MacOSXPreferencesFile.markChanged(MacOSXPreferencesFile.java:291) at java.prefs/java.util.prefs.MacOSXPreferencesFile.addNode(MacOSXPreferencesFile.java:367) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:115) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:86) at java.prefs/java.util.prefs.MacOSXPreferences.getUserRoot(MacOSXPreferences.java:59) at java.prefs/java.util.prefs.MacOSXPreferencesFactory.userRoot(MacOSXPreferencesFactory.java:31) at java.prefs/java.util.prefs.Preferences.userRoot(Preferences.java:457) at java.prefs/java.util.prefs.Preferences.userNodeForPackage(Preferences.java:371) at org.sikuli.basics.PreferencesUser.(PreferencesUser.java:53) at org.sikuli.basics.PreferencesUser.get(PreferencesUser.java:57) at org.sikuli.script.support.RunTime.cleanUp(RunTime.java:1350) at org.sikuli.script.support.RunTime.runShutdownHook(RunTime.java:1364) at org.sikuli.script.support.RunTime.access$000(RunTime.java:42) at org.sikuli.script.support.RunTime$3.run(RunTime.java:1056) ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1871026 Title: Exception in thread Status in Sikuli: New Bug description: Installed 2.0.4-2020-03-14_08:01/Mac10.15.3/Java13(64)13.0.1+9 Tried 3 Script Files Script ran ok on exit(0) Result Exception in thread "Thread-0" java.lang.IllegalStateException: Shutdown in progress at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66) at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:213) at java.prefs/java.util.prefs.MacOSXPreferencesFile.timer(MacOSXPreferencesFile.java:357) at java.prefs/java.util.prefs.MacOSXPreferencesFile.markChanged(MacOSXPreferencesFile.java:291) at java.prefs/java.util.prefs.MacOSXPreferencesFile.addNode(MacOSXPreferencesFile.java:367) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:115) at java.prefs/java.util.prefs.MacOSXPreferences.(MacOSXPreferences.java:86) at java.prefs/java.util.prefs.MacOSXPreferences.getUserRoot(MacOSXPreferences.java:59) at java.prefs/java.util.prefs.MacOSXPreferencesFactory.userRoot(MacOSXPreferencesFactory.java:31) at java.prefs/java.util.prefs.Preferences.userRoot(Preferences.java:457) at java.prefs/java.util.prefs.Preferences.userNodeForPackage(Preferences.java:371) at org.sikuli.basics.PreferencesUser.(PreferencesUser.java:53) at org.sikuli.basics.PreferencesUser.get(PreferencesUser.java:57) at org.sikuli.script.support.RunTime.cleanUp(RunTime.java:1350) at org.sikuli.script.support.RunTime.runShutdownHook(RunTime.java:1364) at org.sikuli.script.support.RunTime.access$000(RunTime.java:42) at org.sikuli.script.support.RunTime$3.run(RunTime.java:1056) To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1871026/+subscriptions ___ 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 #689702]: OCR Useage
Question #689702 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689702 Status: Answered => Solved Jeff_Vallis confirmed that the question is solved: Downloaded and 2.0.4 now 2.0.4-2020-03-14_08:01/Mac10.15.3/Java13(64)13.0.1+9 ran setRect(349,252,117,16) highlight(1) v = text() print v Result - Web page Loaded https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-libraries-for-Tess4J-Tesseract-4-OCR Followed Instruction :- brew install tesseract tesseract -v Result :- tesseract 4.1.1 leptonica-1.79.0 libgif 5.2.1 : libjpeg 9d : libpng 1.6.37 : libtiff 4.1.0 : zlib 1.2.11 : libwebp 1.1.0 : libopenjp2 2.3.1 Found AVX2 Found AVX Found FMA Found SSE Ran again : with regions on the Web Page Loaded x1 = Region(562,529,117,17) setRect(x1.x,x1.y,x1.w,x1.h) highlight(1) v = text() print "^ " * 40 print v print "^ " * 40 x1 = Region(171,616,649,22) setRect(x1.x,x1.y,x1.w,x1.h) highlight(1) v = text() print "^ " * 40 print v print "^ " * 40 exit(0) Result :- [log] highlight R[562,529 117x17]@S(0) for 1.0 secs [log] highlight R[171,616 649x22]@S(0) for 1.0 secs ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ libtiff 4.0.10 ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ This might work as well with other package managers like MacPorts, Finch, ..., but is not tested. ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ [info] Exit code: 0 So without testing my actual code it appears to be ok. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ 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