Re: [Sikuli-driver] [Question #266141]: [1.1.0] Jython-2.7-rc3: Subclassing Region: with __init__ the java level constructors not used with super()__init__(), leaving Region "empty" --- workaround
Question #266141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266141 Ryan posted a new comment: RaiMan fixed this in 1.1.0 actually (as per my request). If you subclass Region you need to include self.init(ptn) in the __init__. The ptn should be whatever the incoming variable to create the region is - the image path, for instance. The point of the fix is to get around the fact that there is no __init__ as mentioned above This should probably get added to the docs at some point too. I get null regions if I don't add this as well. -- 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 #404167]: Following successful setup, sikuli-ide.jar and RunIDE.cmd are running setup again instead of running the actual IDE
New question #404167 on Sikuli: https://answers.launchpad.net/sikuli/+question/404167 Before anyone asks, I'm using v1.0.1 as per the specifications of my project (1.1.0 doesn't run as smoothly in my environment). I ran setup and everything looks fine, but when I try to run the IDE it opens the setup dialog box again and tries to run through the whole process again. Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Windows\system32>cd C:\SikuliX-1.0.1 C:\SikuliX-1.0.1>runIDE.cmd +++ running this Java java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) Client VM (build 25.111-b14, mixed mode, sharing) +++ trying to start Sikuli IDE +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\SikuliX-1.0.1\sikuli-ide.jar Error: Invalid or corrupt jarfile C:\SikuliX-1.0.1\sikuli-ide.jar C:\SikuliX-1.0.1>runIDE.cmd +++ running this Java java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) Client VM (build 25.111-b14, mixed mode) +++ trying to start Sikuli IDE +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\SikuliX-1.0.1\sikuli-ide.jar [debug] SikuliX Setup Build: 1.0.1 12NOV201312 [debug] ... starting with no args given [debug] syspath: C:\SikuliX-1.0.1\libs [debug] syspath: C:\ProgramData\Oracle\Java\javapath [debug] syspath: C:\Windows\system32 [debug] syspath: C:\Windows [debug] syspath: C:\Windows\System32\Wbem [debug] syspath: C:\Windows\System32\WindowsPowerShell\v1.0\ [debug] syspath: C:\Program Files\VisualSVN Server\bin [debug] syspath: C:\opscode\chef\bin\ [debug] syspath: C:\SikuliX-1.0.1\Downloads\libs [debug] syspath: C:\SikuliX-1.0.1\libs At this point, it hangs, presumably because setup is already done. Does anyone have any suggestions? I really need to get this running sooner rather than later. Thanks! -- 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 #634971]: Sikuli hanging on 2nd run of a script
New question #634971 on Sikuli: https://answers.launchpad.net/sikuli/+question/634971 Hello, I am running a test script on macOS where I choose a location of a folder and sikuli stores the variable for use later in the script. I am running into an issue where sikuli will correctly run the script the 1st time I run it after starting the IDE, but a 2nd run will see sikuli hide the IDE window (like normal when it runs scripts), but nothing happens. I can see that the process is active in Activity Monitor, but I need to force quit the app to use it further. Sometimes, sikuli hangs on the 1st run of the script. I am using Sikuli 1.1.1 2017-03-30 (I did just upgrade from the 2017-03-15 build by deleting the sikuli app and the 'App Support' folder and installing the new version fresh) macOS Sierra 10.12.5 Here is my script: def SDKLocation(): Location = popFile("choose") Location = Location + "/_build/bin/release/" popup(Location) SDKLocation() I have noticed that if I remove the ' + "/_build/bin/release/" ' bit that the script seems to run more (about 3 or 4 times) before hanging on the next run. Am I do something that would cause this behavior? Or is this a bug? -- 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 #634971]: Sikuli hanging on 2nd run of a script
Question #634971 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/634971 Description changed to: Hello, I am running a test script on macOS where I choose a location of a folder and sikuli stores the variable for use later in the script. I am running into an issue where sikuli will correctly run the script the 1st time I run it after starting the IDE, but a 2nd run will see sikuli hide the IDE window (like normal when it runs scripts), but nothing happens. I can see that the process is active in Activity Monitor, but I need to force quit the app to use it further. Sometimes, sikuli hangs on the 1st run of the script. I am using Sikuli 1.1.1 2017-03-30 (I did just upgrade from the 2017-03-15 build by deleting the sikuli app and the 'App Support' folder and installing the new version fresh) macOS Sierra 10.12.5 Here is my script: from sikuli import * <--I have this line here because I am wanting to call this function via another sikuli script def SDKLocation(): Location = popFile("choose") Location = Location + "/_build/bin/release/" popup(Location) SDKLocation() I have noticed that if I remove the ' + "/_build/bin/release/" ' bit that the script seems to run more (about 3 or 4 times) before hanging on the next run. Am I do something that would cause this behavior? Or is this a bug? -- 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 #634971]: Sikuli hanging on 2nd run of a script
Question #634971 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/634971 Description changed to: Hello, I am running a test script on macOS where I choose a location of a folder and sikuli stores the variable for use later in the script. I am running into an issue where sikuli will correctly run the script the 1st time I run it after starting the IDE, but a 2nd run will see sikuli hide the IDE window (like normal when it runs scripts), but nothing happens. I can see that the process is active in Activity Monitor, but I need to force quit the app to use it further. Sometimes, sikuli hangs on the 1st run of the script. I am using Sikuli 1.1.1 2017-03-30 (I did just upgrade from the 2017-03-15 build by deleting the sikuli app and the 'App Support' folder and installing the new version fresh) macOS Sierra 10.12.5 JDK 1.8 Here is my script: from sikuli import * <--I have this line here because I am wanting to call this function via another sikuli script def SDKLocation(): Location = popFile("choose") Location = Location + "/_build/bin/release/" popup(Location) SDKLocation() I have noticed that if I remove the ' + "/_build/bin/release/" ' bit that the script seems to run more (about 3 or 4 times) before hanging on the next run. Am I do something that would cause this behavior? Or is this a bug? -- 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 1694102] Re: [1.1.1] macOS: popFile() hangs --- fixed 1.1.2 2017-05-28
oooh, looks like it was a bug. I guess this means I should try to give 1.1.2 a shot ;) Thanks for fixing! -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1694102 Title: [1.1.1] macOS: popFile() hangs --- fixed 1.1.2 2017-05-28 Status in Sikuli: Fix Committed Bug description: Hello, I am running a test script on macOS where I choose a location of a folder and sikuli stores the variable for use later in the script. I am running into an issue where sikuli will correctly run the script the 1st time I run it after starting the IDE, but a 2nd run will see sikuli hide the IDE window (like normal when it runs scripts), but nothing happens. I can see that the process is active in Activity Monitor, but I need to force quit the app to use it further. Sometimes, sikuli hangs on the 1st run of the script. I am using Sikuli 1.1.1 2017-03-30 (I did just upgrade from the 2017-03-15 build by deleting the sikuli app and the 'App Support' folder and installing the new version fresh) macOS Sierra 10.12.5 JDK 1.8 Here is my script: from sikuli import * <--I have this line here because I am wanting to call this function via another sikuli script def SDKLocation(): Location = popFile("choose") Location = Location + "/_build/bin/release/" popup(Location) SDKLocation() I have noticed that if I remove the ' + "/_build/bin/release/" ' bit that the script seems to run more (about 3 or 4 times) before hanging on the next run. Am I do something that would cause this behavior? Or is this a bug? To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1694102/+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 #634971]: Sikuli hanging on 2nd run of a script
Question #634971 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/634971 Ryan posted a new comment: Hi RaiMan, thanks for the response. I was using popFile() since it allowed me to drag a folder onto the text entry field and it would paste the location of that folder so then I could capture it via the return of that text input box. I looked for a solution for this for awhile and came up with popFile. I am sure there is another way - I will just have to find it. The reason I am aiming for the drag n drop feature is that I am working on testing a program that is continually updated and I need to have the current version as well as a few other versions available to test with. This is why I have moved away from hardcoding the path (which I have done before and the rest of my script worked fantastically!) and it also started becoming a burden to manually change the paths in my scripts when I needed to switch versions of the program I wanted to run the Sikuli script against. -- 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 #642659]: Sikuli can no longer create new files
New question #642659 on Sikuli: https://answers.launchpad.net/sikuli/+question/642659 Hi all, Would really appreciate any insight on this, as I've spent a lot of time troubleshooting to no avail. I'm using Sikuli on a VM to do some morning checkouts for a suite of applications, and one week Sikuli stopped being able to write new files for screenshots or logs. I also use it to encrypt login information, which involves creating and deleting a cipher text file every time a script is run. However, I keep getting thrown this error: [error] IOError ( (2, 'No such file or directory', 'I:\\Sikuli\\New folder\\Untitled.sikuli\\New Text Document.txt') ) Even though the line of code the error refers to is: cipherFile = open('I:\\Sikuli\\New folder\\Untitled.sikuli\\New Text Document.txt', 'r+') Which should create the file if it does not exist. I've tried changing permissions on the folder its trying to write to, upgrading Sikuli to 1.1.1, and even manually creating I:\\Sikuli\\New folder\\Untitled.sikuli\\New Text Document.txt so that Sikuli could just write to it rather than have to make a new file. Still no dice. Does anyone have any ideas? Would be greatly appreciated, I could use a fresh set of eyes on it. Thanks! -- 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 #634971]: Sikuli hanging on 2nd run of a script
Question #634971 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/634971 Ryan posted a new comment: I haven't had a chance to check yet. I am working on my Sikuli project in my spare time at work and it's been pretty busy lately. I am hoping the get sometime soon to check it out. I get back to this thread when I get a chance. Thanks for fixing!! -- 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 #634971]: Sikuli hanging on 2nd run of a script
Question #634971 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/634971 Status: Answered => Solved Ryan confirmed that the question is solved: Hi again RaiMan, As it turns out, I found some free time today. I downloaded the 06-04 nightly build of Sikuli 1.1.2 and installed that. I recreated the script from above and ran it - it ran perfectly multiple times in a row, so it looks fixed! One note is that is have upgraded my system to the latest macOS beta (10.13) and it works on there. popFile gave me a slightly different text box than I was expecting (It allowed me to browse through my folder structure to choose a file or folder), but the result is what I am looking for. My 10.12.5 partition is not wanting to boot right now, but I would expect it would be working on that OS as well. -- 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 #634971]: Sikuli hanging on 2nd run of a script
Question #634971 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/634971 Ryan confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #645547]: "Location: outside any screen" when running headless
New question #645547 on Sikuli: https://answers.launchpad.net/sikuli/+question/645547 Hi, I'm trying to run Sikuli on a VDI to automate a simple report that I do in the morning. I use a powershell script which automatically creates a session at 1280 x 1024 for Sikuli to run if no one is logged in. This is the same resolution as is normally used as well. The error from the log is "Location: outside any screen (38717760, 38717760) - subsequent actions might not work as expected". I am only working with one screen @ 1280 x 1024, and have not moved the taskbar or changed any display properties. Sikuli then looks for the images I've specified and returns: [debug] Image: reused: BONavigator.png (file:/C:/Sikuli/Scripts/BusinessObjects.sikuli/BONavigator.PNG) [debug] Observer: update result: Patterns: true [debug] Observer: update result: Changes: false Those messages repeat until the observer times out as specified. Any help would be greatly appreciated, this is the last snag before I can fully automate this. Thank you in advance!! :) -- 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 #645547]: "Location: outside any screen" when running headless
Question #645547 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/645547 Description changed to: Hi, I'm trying to run Sikuli on a Windows 7 VDI to automate a simple report that I do in the morning. I use a powershell script which automatically creates a session at 1280 x 1024 for Sikuli to run if no one is logged in. This is the same resolution as is normally used as well. The error from the log is "Location: outside any screen (38717760, 38717760) - subsequent actions might not work as expected". I am only working with one screen @ 1280 x 1024, and have not moved the taskbar or changed any display properties. Sikuli then looks for the images I've specified and returns: [debug] Image: reused: BONavigator.png (file:/C:/Sikuli/Scripts/BusinessObjects.sikuli/BONavigator.PNG) [debug] Observer: update result: Patterns: true [debug] Observer: update result: Changes: false Those messages repeat until the observer times out as specified. Any help would be greatly appreciated, this is the last snag before I can fully automate this. Please let me know if there's any more info I should provide. Thank you in advance!! :) -- 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 #645547]: "Location: outside any screen" when running headless
Question #645547 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/645547 Status: Answered => Open Ryan is still having a problem: I already use Sikuli headlessly with similar configurations in multiple other VMs. Those questions do not apply to mine, as I'm not using Jenkins and my powershell script does indeed run Sikuli headlessly. -- 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 #658038]: subprocess.Popen does not seems to function within Sikuli 2017-90-14 build
New question #658038 on Sikuli: https://answers.launchpad.net/sikuli/+question/658038 Hello, I am in the process of creating a script that will run through various Unreal demos for me - it will launch them with a few arguments and then kill the process. So far, I am focusing on having A process launch with Sikuli on mac. I have been using subprocess.Popen and I can launch the demo and other apps from the MacOS terminal just fine using Python. When I try the same code in Sikuli, nothing seems to happen - no process opens, the IDE just reappears with no output as if it has successfully completed the script. I have the code to print the output of the process to the screen, but nothing is output. -- My Code: import subprocess com = subprocess.Popen("/Applications/Calculator.app/Contents/MacOS/Calculator", stdout=subprocess.PIPE, stderr=subprocess.STDOUT) result = com.stdout.read() print(result) --- When running this, I see this output: 2017-09-14 17:15:40.308 JavaAppLauncher[4260:119455] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting Again, the calc app does not open. However, when I change my code to run one of the Unreal demos I have on my system, I see no output at all, yet I do see other prints I have, such as "I am here" to help me follow the code. The Unreal demo location for me is here: /Users/test/Desktop/Mac_Unreal4.17/Hallway.app/Contents/MacOS/Hallway I have been able to use Sikuli on my Win10 machine to do this exact same task - so I know Sikuli is up to the job. I am running nightly build 2017-09-14 and MacOS 10.13 (Beta 9) 17A360a -- starting to wonder if this is a Beta issue. Any help or idea would be appreciated - thanks. -- 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 #658038]: subprocess.Popen does not seems to function within Sikuli 2017-09-14 macOS build
Question #658038 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/658038 Summary changed to: subprocess.Popen does not seems to function within Sikuli 2017-09-14 macOS build -- 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 #658038]: subprocess.Popen does not seems to function within Sikuli 2017-90-14 macOS build
Question #658038 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/658038 Summary changed to: subprocess.Popen does not seems to function within Sikuli 2017-90-14 macOS build -- 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 #658038]: [1.1.1] subprocess.Popen does not seem to work on macOS 10.12+
Question #658038 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/658038 Status: Solved => Open Ryan is still having a problem: HI RaiMan Thanks for taking a look at this - I really appreciate it! I tried out the new build today (1.1.2-SNAPSHOT 2017-09-15_08:24) and I still have the issue - I can't get any process to launch with subprocess.Popen. I also loaded this same version, on the same machine, onto Sierra macOS 10.12.5 and saw the same issue. I looked around on the github a bit and saw the change was submitted to the Develop branch and not the Master branch. I downloaded the setup.jar file from this page: https://raiman.github.io/SikuliX-2014/nightly.html I am wondering if that grabbed the Master version and not the branch that the fix went into. The quick code I wrote to test this out (Hopefully it is not my fault): import subprocess subprocess.Popen("/Applications/Calculator.app/Contents/MacOS/Calculator") -- 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 #658038]: [1.1.1] subprocess.Popen does not seem to work on macOS 10.12+
Question #658038 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/658038 Ryan posted a new comment: Hrmmm ok, I will have a look at my setup - I might not have fully cleared out the old version. -- 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 1793035] [NEW] Robot scripts not embedding screenshot into log
Public bug reported: Hello, I have been using Sikuli 1.1.4 (2019-09-12_07-01) with the robotframework-3.0.4 JAR distribution to add screenshots to my log files for visual verification. I have been unable to have the screenshot added to the log when I run the script through the Sikuli IDE. However, running the same script, I have been able to have the screenshot correctly embedded with both RF (normal installation) as well as running the RF JAR distributable - same distributable I am running with the Sikuli IDE - from the commandline. Here is the what I am using to run via the command line: java -jar C:\Users\[user]\AppData\Roaming\Sikulix\Extensions\robotframework-3.0.4.jar C:\Users\[user]\Desktop\test2.sikuli.robot This is my simple RF script I am running from Sikuli: runScript(""" robot *** Settings *** Library Screenshot *** Test Cases *** Try to take a screenshot Take Screenshot mypic 80% """) REPRO: 1. Load Sikuli 1.1.4 (2019-09-12_07-01) onto a Win10 64bit machine 2. Download robotframework-3.0.4.JAR and place it in C:\Users\[user]\AppData\Roaming\Sikulix\Extensions 3. Open Sikuli and write a script as described above 4. Run the script RESULT: All expected logs/reports/images are created, but the jpg is not embedded in the log.html file. EXPECTED: img is embedded in the log file ** 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/1793035 Title: Robot scripts not embedding screenshot into log Status in Sikuli: New Bug description: Hello, I have been using Sikuli 1.1.4 (2019-09-12_07-01) with the robotframework-3.0.4 JAR distribution to add screenshots to my log files for visual verification. I have been unable to have the screenshot added to the log when I run the script through the Sikuli IDE. However, running the same script, I have been able to have the screenshot correctly embedded with both RF (normal installation) as well as running the RF JAR distributable - same distributable I am running with the Sikuli IDE - from the commandline. Here is the what I am using to run via the command line: java -jar C:\Users\[user]\AppData\Roaming\Sikulix\Extensions\robotframework-3.0.4.jar C:\Users\[user]\Desktop\test2.sikuli.robot This is my simple RF script I am running from Sikuli: runScript(""" robot *** Settings *** Library Screenshot *** Test Cases *** Try to take a screenshot Take Screenshot mypic 80% """) REPRO: 1. Load Sikuli 1.1.4 (2019-09-12_07-01) onto a Win10 64bit machine 2. Download robotframework-3.0.4.JAR and place it in C:\Users\[user]\AppData\Roaming\Sikulix\Extensions 3. Open Sikuli and write a script as described above 4. Run the script RESULT: All expected logs/reports/images are created, but the jpg is not embedded in the log.html file. EXPECTED: img is embedded in the log file To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1793035/+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 1793035] Re: Robot scripts not embedding screenshot into log
I ended up finding a solution to this - there is still an issue with Sikuli out of the box, but here is my workaround: - I installed robotframework via pip (which installed RF 3.0.4) - I copied the robot folder from my Python folder (where pip installed RF) and replaced the robot folder in Sikuli's AppData folder (C:\Python27\Lib\site-packages\robot -> C:\Users\[user]\AppData\Roaming\Sikulix\Lib\robot - At this point, the image still was not embedding itself. - I then removed the RF JAR file from the Extensions folder Now, I am seeing my image embed itself in the log file when I run my RF script via Sikuli IDE. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1793035 Title: Robot scripts not embedding screenshot into log Status in Sikuli: New Bug description: Hello, I have been using Sikuli 1.1.4 (2019-09-12_07-01) with the robotframework-3.0.4 JAR distribution to add screenshots to my log files for visual verification. I have been unable to have the screenshot added to the log when I run the script through the Sikuli IDE. However, running the same script, I have been able to have the screenshot correctly embedded with both RF (normal installation) as well as running the RF JAR distributable - same distributable I am running with the Sikuli IDE - from the commandline. Here is the what I am using to run via the command line: java -jar C:\Users\[user]\AppData\Roaming\Sikulix\Extensions\robotframework-3.0.4.jar C:\Users\[user]\Desktop\test2.sikuli.robot This is my simple RF script I am running from Sikuli: runScript(""" robot *** Settings *** Library Screenshot *** Test Cases *** Try to take a screenshot Take Screenshot mypic 80% """) REPRO: 1. Load Sikuli 1.1.4 (2019-09-12_07-01) onto a Win10 64bit machine 2. Download robotframework-3.0.4.JAR and place it in C:\Users\[user]\AppData\Roaming\Sikulix\Extensions 3. Open Sikuli and write a script as described above 4. Run the script RESULT: All expected logs/reports/images are created, but the jpg is not embedded in the log.html file. EXPECTED: img is embedded in the log file To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1793035/+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 1793035] Re: [1.1.4] RobotFramework: scripts not embedding screenshot into log --- needs robot 3.0.4 --- fixed 2018-09-19
Deleted the entire Sikuli folder in AppData, the JAR file of the previous build and also uninstalled RF through pip. I downloaded and tested build # 2018-09-19_07:17. Images are now embedding in the log file! Thanks for the quick turn-around :D One note, I kept seeing this error ('No installed runner supports (text/python) Trying to run the script will crash the IDE!') when starting Sikuli and loading up my previous script until I downloaded a JAR distribution of Jython-2.7 and put it in the Extensions folder. To be fair, I apparently uninstalled my Jython installation previously, so that may be the reason for seeing this error. I am mainly mentioning this since I am not sure if this is correct behavior or not. If not, I can open another issue about it. Regardless, the image embedding issue is fixed with this new build. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1793035 Title: [1.1.4] RobotFramework: scripts not embedding screenshot into log --- needs robot 3.0.4 --- fixed 2018-09-19 Status in Sikuli: Fix Committed Bug description: Hello, I have been using Sikuli 1.1.4 (2019-09-12_07-01) with the robotframework-3.0.4 JAR distribution to add screenshots to my log files for visual verification. I have been unable to have the screenshot added to the log when I run the script through the Sikuli IDE. However, running the same script, I have been able to have the screenshot correctly embedded with both RF (normal installation) as well as running the RF JAR distributable - same distributable I am running with the Sikuli IDE - from the commandline. Here is the what I am using to run via the command line: java -jar C:\Users\[user]\AppData\Roaming\Sikulix\Extensions\robotframework-3.0.4.jar C:\Users\[user]\Desktop\test2.sikuli.robot This is my simple RF script I am running from Sikuli: runScript(""" robot *** Settings *** Library Screenshot *** Test Cases *** Try to take a screenshot Take Screenshot mypic 80% """) REPRO: 1. Load Sikuli 1.1.4 (2019-09-12_07-01) onto a Win10 64bit machine 2. Download robotframework-3.0.4.JAR and place it in C:\Users\[user]\AppData\Roaming\Sikulix\Extensions 3. Open Sikuli and write a script as described above 4. Run the script RESULT: All expected logs/reports/images are created, but the jpg is not embedded in the log.html file. EXPECTED: img is embedded in the log file To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1793035/+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 1793408] [NEW] popFile on Win10 only allows sikuli folders to be seleted
Public bug reported: When I write a Sikuli script to open a dialog to let me choose a folder location, the IDE will only allow me to choose a sikuli folder. This is my script: -- test = popFile("Choose a folder") print(test) -- REPRO: 1. Load Sikuli 1.1.4 (2018-09-19_07:17) onto a Win 10 64bit machine 2. Download the Jython-standalone-2.7.0.JAR and place it in the AppData/Roaming/Sikulix/Extensions folder (unsure if this is needed) 3. Open Sikuli and write a script as described above RESULT: Selecting a non-sikuli folder pops a message saying 'This is not a valid sikuli script'. EXPECTED: The user would be able to select any folder ** 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/1793408 Title: popFile on Win10 only allows sikuli folders to be seleted Status in Sikuli: New Bug description: When I write a Sikuli script to open a dialog to let me choose a folder location, the IDE will only allow me to choose a sikuli folder. This is my script: -- test = popFile("Choose a folder") print(test) -- REPRO: 1. Load Sikuli 1.1.4 (2018-09-19_07:17) onto a Win 10 64bit machine 2. Download the Jython-standalone-2.7.0.JAR and place it in the AppData/Roaming/Sikulix/Extensions folder (unsure if this is needed) 3. Open Sikuli and write a script as described above RESULT: Selecting a non-sikuli folder pops a message saying 'This is not a valid sikuli script'. EXPECTED: The user would be able to select any folder To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1793408/+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 1793408] Re: popFile on Win10 only allows sikuli folders to be seleted
Digging through the Answers backlog, I found a question that was solved back in 2016: https://answers.launchpad.net/sikuli/+question/294059 I didn't see a related bug to re-open. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1793408 Title: popFile on Win10 only allows sikuli folders to be seleted Status in Sikuli: New Bug description: When I write a Sikuli script to open a dialog to let me choose a folder location, the IDE will only allow me to choose a sikuli folder. This is my script: -- test = popFile("Choose a folder") print(test) -- REPRO: 1. Load Sikuli 1.1.4 (2018-09-19_07:17) onto a Win 10 64bit machine 2. Download the Jython-standalone-2.7.0.JAR and place it in the AppData/Roaming/Sikulix/Extensions folder (unsure if this is needed) 3. Open Sikuli and write a script as described above RESULT: Selecting a non-sikuli folder pops a message saying 'This is not a valid sikuli script'. EXPECTED: The user would be able to select any folder To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1793408/+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 1793408] Re: [1.1.4] Win: popFile only allows sikuli folders to be seleted --- save script first or say ESC to script-save dialog
Hi RaiMan, I went back and recreated my one line script from above. I made sure to save the script (I clicked the Run button, then saved the script as a new sikuli file). The popFile dialog then appeared (I see that the dialog is titled what I specified in my script), when I choose a non-sikuli folder from here, I see the error originally reported. I thought maybe I would have to add 'from sikuli import *', but after adding that line I still see the error. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1793408 Title: [1.1.4] Win: popFile only allows sikuli folders to be seleted --- save script first or say ESC to script-save dialog Status in Sikuli: Invalid Bug description: When I write a Sikuli script to open a dialog to let me choose a folder location, the IDE will only allow me to choose a sikuli folder. This is my script: -- test = popFile("Choose a folder") print(test) -- REPRO: 1. Load Sikuli 1.1.4 (2018-09-19_07:17) onto a Win 10 64bit machine 2. Download the Jython-standalone-2.7.0.JAR and place it in the AppData/Roaming/Sikulix/Extensions folder (unsure if this is needed) 3. Open Sikuli and write a script as described above RESULT: Selecting a non-sikuli folder pops a message saying 'This is not a valid sikuli script'. EXPECTED: The user would be able to select any folder To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1793408/+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 1793408] Re: [1.1.4] Win: popFile only allows sikuli folders to be seleted --- save script first or say ESC to script-save dialog --- fixed 2018-09-21
Tested against 1.1.4(2018-09-21-17:33) This now works - thanks RaiMan! -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1793408 Title: [1.1.4] Win: popFile only allows sikuli folders to be seleted --- save script first or say ESC to script-save dialog --- fixed 2018-09-21 Status in Sikuli: Fix Committed Bug description: When I write a Sikuli script to open a dialog to let me choose a folder location, the IDE will only allow me to choose a sikuli folder. This is my script: -- test = popFile("Choose a folder") print(test) -- REPRO: 1. Load Sikuli 1.1.4 (2018-09-19_07:17) onto a Win 10 64bit machine 2. Download the Jython-standalone-2.7.0.JAR and place it in the AppData/Roaming/Sikulix/Extensions folder (unsure if this is needed) 3. Open Sikuli and write a script as described above RESULT: Selecting a non-sikuli folder pops a message saying 'This is not a valid sikuli script'. EXPECTED: The user would be able to select any folder To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1793408/+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 #674340]: Issue with clicking anything inside a VMware Workstation 14 VM.
Question #674340 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/674340 Ryan Lozier posted a new comment: Thanks for you prompt response and suggestions. I will check down that path. -- 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 #678788]: Mojave : SikuliXIDE : Simple example needed to integrate SikuliX script into RobotFramework
Question #678788 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678788 Ryan posted a new comment: Melvin - I know the feeling. I had to re script everything basically to convert my Sikuli script into something that would work from RF. I had to re-think who was in the driver seat of the script - it moved from sikuli to RF. I basically had to turn everything Sikuli did into various functions and call them from RF. I also had to start passing variables back and forth from RF to Sikuli, since Sikuli was no longer driving and couldn't pass things between itself. And then there was the learning of the syntax of RF... -- 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 #678731]: How to detect moving images and images in 3D games
Question #678731 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/678731 Ryan posted a new comment: The easiest way I have gone about navigating games with Sikuli is to: 1) Base my image searches on static images/words or ones that change slowly (giving time for sikuli to scan the screen) 2) If I can, setup and offset of those static images if I have to click an area with a mouse 3) Use hotkeys as much as possible (for selecting units or movement) $) Use launch arguments if I can -- 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 1797505] Re: [1.1.4] Windows: can't find dependent libraries with opencv_java342.dll
I am adding a comment because I have the same issue on one of my test Win10 machines. I tried the solutions here and found elsewhere on the web, but nothing has helped so far. I do have a Win10 machine that will run Sikuli - same Sikuli version. The difference is the Windows versions. The one that Sikuli does not run on has the Red Stone 5 (1809) update installed - the one that works has Red Stone 4 (1803) still. I am thinking this may be the issue - as I have uninstalled various KB updates to see if one of them is causing the error. None of the uninstalled KBs helped. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1797505 Title: [1.1.4] Windows: can't find dependent libraries with opencv_java342.dll Status in Sikuli: In Progress Bug description: [error] RunTimeIDE: opencv_java342.dll loaded, but it might be a problem with ne eded dependent libraries ERROR: ...TEMP...: Can't find dependent libraries [error] RunTimeIDE: *** terminating: problem with native library: opencv_java34 2.dll To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1797505/+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 1797505] Re: [1.1.4] Windows: can't find dependent libraries with opencv_java342.dll
Oh, I forgot to mention, I am using Sikuli SNAPSHOT from 2019-03-15. On the version that does not work, I have the C++ Redistributables from 2008, 2010, 2012, and 2017. Uninstalled and reinstalling all that did not help. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1797505 Title: [1.1.4] Windows: can't find dependent libraries with opencv_java342.dll Status in Sikuli: In Progress Bug description: [error] RunTimeIDE: opencv_java342.dll loaded, but it might be a problem with ne eded dependent libraries ERROR: ...TEMP...: Can't find dependent libraries [error] RunTimeIDE: *** terminating: problem with native library: opencv_java34 2.dll To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1797505/+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 1797505] Re: [1.1.4] Windows: can't find dependent libraries with opencv_java342.dll
Update to say that I reinstalled Windows RedStone 4 (fresh Windows, but didn't format the drive). The issue still persisted - so it wasn't the Red Stone update to blame. I then ended up nuking n' paving (formatted and reinstalled Win 10 RedStone 4). NOW a simple 'click the start button' script works again. This was all with the SNAPSHOT 2019-03-20 build. So, some wires where seriously crossed and I still have no idea how to uncross them without this 'last resort' solution. I still have no idea how thy got crossed in the first place - Sikuli worked on this machine and then when I tried it again a few months later, it didn't work. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1797505 Title: [1.1.4] Windows: can't find dependent libraries with opencv_java342.dll Status in Sikuli: In Progress Bug description: [error] RunTimeIDE: opencv_java342.dll loaded, but it might be a problem with ne eded dependent libraries ERROR: ...TEMP...: Can't find dependent libraries [error] RunTimeIDE: *** terminating: problem with native library: opencv_java34 2.dll To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1797505/+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 1797505] Re: [1.1.4] Windows: can't find dependent libraries with opencv_java342.dll
Also with Java 8 64-bitbuild 202 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1797505 Title: [1.1.4] Windows: can't find dependent libraries with opencv_java342.dll Status in Sikuli: In Progress Bug description: [error] RunTimeIDE: opencv_java342.dll loaded, but it might be a problem with ne eded dependent libraries ERROR: ...TEMP...: Can't find dependent libraries [error] RunTimeIDE: *** terminating: problem with native library: opencv_java34 2.dll To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1797505/+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 #139475]: Sikuli X 1.0rc1 - How to get an exact match with click("String")?
Question #139475 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/139475 Ryan posted a new comment: In case anyone is curious about this: I am using the SNAPSHOT build from 2019-03-20. This feature seems like it is looking for an image file all the time - I can't seem to get it to recognize a string. I use this in my script: r.find("9") #just looking for the number 9 in the region 'r' The script always stops at this line saying "find: ImageMissing: 9" Unless there is some other way to designate a 'string' rather than an image file path. I tried double quotes, single quotes, and no quotes - all the same result -- 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 1270177] Re: [request] want a feature to select an image in a drop down list
Why not dynamically create a region based on the corners of the dropdown? It wouldn't matter what direction the dropdown opens since the user will specify what the top left, bottom left, and top right region look like. If you capture the images carefully it won't matter what is behind the dropdown or how many options are in the dropdown (important in most of my scenarios). If all actions relating to the dropdown utilize this region it will also allow for separate scoping of both up/down/scroll arrows and any text searches by OCR. The code is pretty simple to abstract into a function, or superclass depending on how Object Oriented the project is, and re-use all over the project. I feel like from an OO perspective that it seems a little domain specific to be built into sikuli as a class of some kind, but as a function the logic would be as simple as (psuedo code): openDropDown(ddHead, topLeft, topRight, bottomLeft): click the head find each image calculate the width from topLeft to topRight calculate the height from topLeft to bottomLeft region(topLeft.getX(), topLeft.getY(), width, height) Here the most general case would be to return that new region, however if it were part of a class it could be set as an attribute and then provide scrolling, clicking, and reading options. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1270177 Title: [request] want a feature to select an image in a drop down list Status in Sikuli: Incomplete Bug description: Hello. It's probably one of the most difficult thing to do with Sikuli. I have no solution at all to generalize this function to work every time. But I think it will be more than useful. -- system -- Sikuli 1.0.1 Win 7 (32) Java 1.7.51 Regards. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1270177/+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 1450805] [NEW] Allow click() to accept and ignore 'None' as a modifier
Public bug reported: Currently the click() method accepts key modifiers as optional arguments. We have created a wrapper function on the click to ensure a little extra stability with the click method and have it available across all scripts. ex: def myClickFun(region, image, modifier=None): # Do some things for stability region.click(image, modifier) We ran into an issue when we needed to introduce the key modifier argument. If we provide the modifier it works as expected, however this breaks all other instances where no modifier is provided giving the following error: TypeError: click(): 2nd arg can't be coerced to int I was expecting the None to be ignored since that is usually the default behavior of an optional argument. Then I remembered that you can supply an integer with the click() method (A quick test revealed that no integer and a value of 60 timed out at about the same time). It seems that the click method could accept keyword arguments (and ignore none as a modifier) to allow for greater flexibility in the method call. Maybe just a single keyword for the modifier in case an integer is not supplied? I realize the great chance that I'm doing something wrong here... if so please let me know. ** 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/1450805 Title: Allow click() to accept and ignore 'None' as a modifier Status in Sikuli: New Bug description: Currently the click() method accepts key modifiers as optional arguments. We have created a wrapper function on the click to ensure a little extra stability with the click method and have it available across all scripts. ex: def myClickFun(region, image, modifier=None): # Do some things for stability region.click(image, modifier) We ran into an issue when we needed to introduce the key modifier argument. If we provide the modifier it works as expected, however this breaks all other instances where no modifier is provided giving the following error: TypeError: click(): 2nd arg can't be coerced to int I was expecting the None to be ignored since that is usually the default behavior of an optional argument. Then I remembered that you can supply an integer with the click() method (A quick test revealed that no integer and a value of 60 timed out at about the same time). It seems that the click method could accept keyword arguments (and ignore none as a modifier) to allow for greater flexibility in the method call. Maybe just a single keyword for the modifier in case an integer is not supplied? I realize the great chance that I'm doing something wrong here... if so please let me know. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1450805/+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 1450805] Re: [1.0.1] Allow click() to accept and ignore 'None' as a modifier --- fixed 2015-05-02+
That makes sense, I didn't think about how that would look in Java, though I did initially check to see if any of the click() code was in Jython. I was hesitant to split the call with an if statement (if modifier or not) since the logic is more complex than my trivial example, and the click is part of an if statement. I overlooked assigning the result of the click to a variable and splitting out the assignment calls based on the modifier parameter. Thanks! -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1450805 Title: [1.0.1] Allow click() to accept and ignore 'None' as a modifier --- fixed 2015-05-02+ Status in Sikuli: Fix Committed Bug description: Currently the click() method accepts key modifiers as optional arguments. We have created a wrapper function on the click to ensure a little extra stability with the click method and have it available across all scripts. ex: def myClickFun(region, image, modifier=None): # Do some things for stability region.click(image, modifier) We ran into an issue when we needed to introduce the key modifier argument. If we provide the modifier it works as expected, however this breaks all other instances where no modifier is provided giving the following error: TypeError: click(): 2nd arg can't be coerced to int I was expecting the None to be ignored since that is usually the default behavior of an optional argument. Then I remembered that you can supply an integer with the click() method (A quick test revealed that no integer and a value of 60 timed out at about the same time). It seems that the click method could accept keyword arguments (and ignore none as a modifier) to allow for greater flexibility in the method call. Maybe just a single keyword for the modifier in case an integer is not supplied? I realize the great chance that I'm doing something wrong here... if so please let me know. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1450805/+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 1453886] [NEW] platform.architecture() does not work from sikuli-script.jar
Public bug reported: To determine some test parameters we are looking to check the system architecture configuration (32 vs 64 specifically). When in an interactive jython session, I get the following: Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar Jython 2.7b2 (default:a5bc0032cf79+, Apr 22 2014, 21:20:17) [Java HotSpot(TM) Client VM (Oracle Corporation)] on java1.7.0_17 Type "help", "copyright", "credits" or "license" for more information. >>> import platform >>> print platform.architecture() ('32bit', '') But when I use a sikuli-script.jar interactive session I get the following: C:\DeploymentUnit\SikuliX>java -jar sikuli-script.jar -i Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUIC KT~1\bin\JAVA_S~1\classes\jasmine.jar Loading HP QuickTest Professional Java Support (version 11.0.0.0) (SUN 1.7.0_17) SikuliX Package Build: 1.0.1 12SEP2013160242 Hello, this is your interactive Sikuli (rules for interactive Python apply) use the UP/DOWN arrow keys to walk through the input history help() will output some basic Python information shelp() will output some basic Sikuli information ... use ctrl-d to end the session >>> import platform >>> print platform.architecture() Traceback (most recent call last): File "", line 1, in File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py", line 887, in architecture File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py", line 830, in _syscmd_file File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py", line 796, in _follow_symlinks File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py", line 493, in abspath File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py", line 53, in isabs File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py", line 119, in splitdrive TypeError: 'NoneType' object is unsubscriptable ** 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/1453886 Title: platform.architecture() does not work from sikuli-script.jar Status in Sikuli: New Bug description: To determine some test parameters we are looking to check the system architecture configuration (32 vs 64 specifically). When in an interactive jython session, I get the following: Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar Jython 2.7b2 (default:a5bc0032cf79+, Apr 22 2014, 21:20:17) [Java HotSpot(TM) Client VM (Oracle Corporation)] on java1.7.0_17 Type "help", "copyright", "credits" or "license" for more information. >>> import platform >>> print platform.architecture() ('32bit', '') But when I use a sikuli-script.jar interactive session I get the following: C:\DeploymentUnit\SikuliX>java -jar sikuli-script.jar -i Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUIC KT~1\bin\JAVA_S~1\classes\jasmine.jar Loading HP QuickTest Professional Java Support (version 11.0.0.0) (SUN 1.7.0_17) SikuliX Package Build: 1.0.1 12SEP2013160242 Hello, this is your interactive Sikuli (rules for interactive Python apply) use the UP/DOWN arrow keys to walk through the input history help() will output some basic Python information shelp() will output some basic Sikuli information ... use ctrl-d to end the session >>> import platform >>> print platform.architecture() Traceback (most recent call last): File "", line 1, in File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py", line 887, in architecture File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py", line 830, in _syscmd_file File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py", line 796, in _follow_symlinks File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py", line 493, in abspath File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py", line 53, in isabs File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py", line 119, in splitdrive TypeError: 'NoneType' object is unsubscriptable To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1453886/+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.
[Sikuli-driver] [Question #269444]: Three parallel scripts optimization help?
New question #269444 on Sikuli: https://answers.launchpad.net/sikuli/+question/269444 1: https://pastebin.com/fmSBWnuV 2: https://pastebin.com/s1DAyLr3 3: https://pastebin.com/y8NSY7Rg Album: http://imgur.com/a/jxEIv I've just moved over to Sikuli today, and was previously using the trial of Macro Scheduler. I really only needed the image recognition. Sikuli seems to really get bogged down when trying to simultaneously wait for multiple images however, and starts to lag the game that I'm trying to automate, this is likely because it uses Java and I'm running three separate processes of it, so I was wondering if there would be any nice way to cut down on the ram/cpu usage while still scanning for all three of these images. So in the first script I'm waiting for image #2 in the album (which appears in the screen above it) which is the beginning of the match, and the script is to automatically enter spectate mode. In the second script I'm waiting for image #4 in the album (appears in the one above it) so I can automatically hit next to move on to the next map at the end of a match, and the third script encompases the player lobby where I have to create a map playlist, hit enter on the ready button, and then hit enter on the start game button. The looping and excepts in the third script are to deal with afk players who don't ready up, so that it can automatically restart the server (there is no kick feature) It is working perfectly as intended right now, but after running for a while it just starts to lag a lot. My game typically runs at around 90-200 fps, and after running the scripts for about an hour, it starts to drop down to 40-50 fps Here's a video of it running (I made one manual change during the entire video, which was to unready myself during the second lobby, to display the server restarting itself): http://youtu.be/HZyaLn1J1wk After entering spectate mode, and before the results screen appears is when everyone else on the server would be racing. The results screen does not appear during spectate mode until everyone else has finished. I would just like to know if there is a better way of doing what I've already got working so it doesn't end up lagging after running only a short period of time. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269444]: Three parallel scripts optimization help?
Question #269444 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269444 Description changed to: 1: https://pastebin.com/fmSBWnuV 2: https://pastebin.com/s1DAyLr3 3: https://pastebin.com/y8NSY7Rg Album: http://imgur.com/a/jxEIv I've just moved over to Sikuli today, and was previously using the trial of Macro Scheduler. I really only needed the image recognition. Sikuli seems to really get bogged down when trying to simultaneously wait for multiple images however, and starts to lag the game that I'm trying to automate, this is likely because it uses Java and I'm running three separate processes of it, so I was wondering if there would be any nice way to cut down on the ram/cpu usage while still scanning for all three of these images. So in the first script I'm waiting for image #2 in the album (which appears in the screen above it) which is the beginning of the match, and the script is to automatically enter spectate mode. In the second script I'm waiting for image #4 in the album (appears in the one above it) so I can automatically hit next to move on to the next map at the end of a match, and the third script encompases the player lobby where I have to create a map playlist, hit enter on the ready button, and then hit enter on the start game button. The looping and excepts in the third script are to deal with afk players who don't ready up, so that it can automatically restart the server (there is no kick feature) It is working perfectly as intended right now, but after running for a while it just starts to lag a lot. My game typically runs at around 90-200 fps, and after running the scripts for about an hour, it starts to drop down to 40-50 fps Here's a video of it running (I made one manual change during the entire video, which was to unready myself during the second lobby, to display the server restarting itself): http://youtu.be/HZyaLn1J1wk After entering spectate mode, and before the results screen appears is when everyone else on the server would be racing. The results screen does not appear during spectate mode until everyone else has finished. I would just like to know if there is a better way of doing what I've already got working so it doesn't end up lagging after running only a short period of time. Edit: Reason I'm using separate scripts instead of putting each one after the other to run in order is so that I can start it (all of them) at any time/screen and it'll work. I might want to play half the maps and then start it, or I might want to start it as soon as I open the server. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269444]: Three parallel scripts optimization help?
Question #269444 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269444 Status: Answered => Open Ryan is still having a problem: "You are running SikulixIDE 1.10" "Build: 2015-07-20_01:00nightly" No the game doesn't have any kind of bot detection, it allows modding and anything similar. Yeah, I probably should use regions instead of the entire screen, especially since I'm using Nvidia Surround (5760x1080, where the game is windowed 1920x1080 on the center monitor) I believe this is the cause of most of my lag: http://i.imgur.com/eB5fmCy.png All three of these java processes start when I run the scripts, and they tend to increase in memory usage slowly over time - Would there be any way to optimize my scripts to only need one java process? I couldn't find a way to run scripts in parallel/threaded without having to run them each individually. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #197294]: Can Sikuli Methods be Overridden?
Question #197294 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/197294 Ryan posted a new comment: I too am hoping for something similar. In my project we are extending the Region class extensively and sometimes need click to have a side effect on the derived class. For example: class checkBox(parentClass): #parentClass is a hierarchy of super classes that implement different domain-specific actions # Parent class eventually inherits from Region and initializes the actual region def __init__(self, region, isSelected): super(checkBox, self).__init__(region) # The super class passes the actual region bounds all of the way up to Region() self.isSelected = isSelected def click(self): super(checkBox, self).click() self.isSelected = not self.isSelected This way I can always do the following: component = checkBox(regionInfo) component.click() I like to keep my elements polymorphic to save lots of code across the automation and references can be passed around based on what is actually found on the screen. Without trying to override click() I am able to use component.click() to click in the center of the component's region. I get a recursion error when I use the code shown. When I try to use parentClass.click() within the click() method I get: TypeError: click(): expected 1-3 args; got 0 Based on this exception it sounds like I really just need to provide some kind of region/instance so I tried to pass self in since it is a region, and even strip the region from the class so that I'm just passing a region: UIBaseClass.click(self) Though this is a single argument I get: TypeError: click() takes exactly 1 argument (3 given) Is there something that can be done to provide the correct argument? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #197294]: Can Sikuli Methods be Overridden?
Question #197294 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/197294 Ryan posted a new comment: One of the reasons we did this was to intentionally block the global undotted methods. The way our testing and framework are set up already removes the ability to run modules as scripts, but further, the flexibility needed requires a structure similar to the page-object model. We create a hierarchy of regions (ex: Screen > Browser > Applications> header, footer, navigation, page > selector frame > checkbox) Each region only knows the region given to it and what components to look for within itself. This means every component uses self.xyz to manipulate the region. Using the Java region still gives me the same issues, so I think I'm going to fore-go the polymorphism and just implement a switchCheckbox(status) method that utilizes click. I did initially have every class contain a region attribute containing the sikuli region, however as I started organizing some of our types things started getting wordy and in some cases did not make sense. Up until now when I wanted to store the status of the checkbox I hadn't noticed any issues with the inheritance, which is why I assumed it was possible. Thanks!! -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269444]: Three parallel scripts optimization help?
Question #269444 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269444 Ryan posted a new comment: Ah, thanks. The observe feature looks like what I needed, just have to read up on how to implement it now. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #269444]: Three parallel scripts optimization help?
Question #269444 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269444 Status: Answered => Solved Ryan confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #270538]: Is there a way to remove the sikuli import feature in the nightly build?
New question #270538 on Sikuli: https://answers.launchpad.net/sikuli/+question/270538 I downloaded the nightly build to check some of the fixes out. After getting it configured I am running into the exception: ImportError: Login.sikuli has no Login.py. I believe it is because our project is not structured using the *.sikuli format. Is there a way to disable this in the importer? This has been working in the previous version for me. With the ability to use Sikuli in an IDE it appears there is now a conflicting requirement. Python projects should be structured using packages and an __init__.py folder. When Eclipse is chosen as an IDE the *.sikuli syntax causes file structure issues. Upon refresh (or running the script maybe, I forget which) the "folder.sikuli" becomes a package structure where "folder" is a package and "sikuli" is a sub-package. This causes all kinds of problems and none of the files can be found anymore. Also, when using multiple .py files I found the need to add every .sikuli folder to the pythonpath (and/or in Eclipse itself - it was causing all kinds of problems) and the solution was to structure the project in a series of packages like Java. All of the image files are accessible via the following: curDir = os.path.dirname(os.path.realpath(__file__)) image = os.path.join(curDir, "image.png") This also allows subclasses and other code to override the image file or curDir to re-use scripts. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #270538]: Is there a way to remove the sikuli import feature in the nightly build?
Question #270538 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270538 Status: Answered => Open Ryan is still having a problem: I'll do my best to provide what I have but some of it I cannot disclose unfortunately. The import part looks like this: The entry point to Jython is a script entrypoint.py within entrypoint.sikuli. This script accepts a variable amount of arguments from the commandline when running. From here we are using reflection to determine what class/function to run based on the arguments. The class to be run is imported as so: mod = __import__("%s.Components.%s" % (self.project, moduleName), fromlist=[moduleName]). Essentially I am building "project.Component.Path.To.Module" and importing the module from it. In my case this successfully begins importing Navigation.py. The failing line from this script is from ..Frames.Pages.Login import Login Sikuli is introduced at the top level package. In this case it is Central/__init__.py. Central.py imports our sikuli wrapper VertexSikuli.py. This is simply to set all configuration and provide a very minimalist sikuli API access to reduce confusion. Sikuli is imported in this file as import sikuli.Sikuli as _sik. I know you promote the use of global imports but we have designed our framework so that all objects either access sikuli functionality through their region or through super-class functionality using the contained region methods. Hope this is helpful! -- You received this question notification because you are a member of Sikuli Drivers, which 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 #270538]: Is there a way to remove the sikuli import feature in the nightly build?
Question #270538 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270538 Status: Answered => Open Ryan is still having a problem: Thanks!! We are using the single .sikuli folder only as the entry point. It is called via 'java -jar sikuli-script.jar -r c:\path\to\executor.sikuli --args [arguments]'. It seemed like the easiest hands-off way to do it. There are several projects running with shared packages and test tools, so the executor.sikuli path is programatically changed based on what project is being run. In some projects there are images with this file and in some there are not but since it is being called from the command line we wanted to make sure it wasn't included in the project package (or even on jythonpath since it should never be called by another Jython script). Are you saying I could simply begin a Jython session and call the .py instead of going through the sikuli jar file? The import is working now, but when I attempt to find the image via absolute path it is returning FindFailed: null Line 2520, in file Region.java I tried making it a pattern as well. When printing the variable I do see the path to the proper image, however. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #270538]: Is there a way to remove the sikuli import feature in the nightly build?
Question #270538 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270538 Ryan posted a new comment: It looks like there is something more to this so I will provide some more detail: An object is looking to find a series of buttons to assign regions to. I am first assigning the image to a dictionary like this: buttons = {"Login": self.loginButton} # self.loginButton is a string path to the image file. These buttons are then iterated through to create regions in another object like so: for button in buttons: img = buttons[button] buttons[button] = Button(self.find(img)) # The object is a subclass of Region so self.find() is calling the find() on a region. Is this a new limitation to subclassing the region objects not found in the previous release? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #270538]: Is there a way to remove the sikuli import feature in the nightly build?
Question #270538 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270538 Ryan posted a new comment: I don't know how to edit the question above so I'm going to add an additional comment: It does appear that it is directly related to subclassing region. We were only subclassing to access the basic functions (click, left, right, getX...) not to override them (Which was the issue in the previous release). I have a simple solution to fix this in my case, but hopefully anybody searching for the answer will come across this and note that subclassing at all doesn't appear to work in 1.1.0. It was already stated in another answer that subclassing Region isn't supported. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #270538]: Is there a way to remove the sikuli import feature in the nightly build?
Question #270538 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270538 Ryan posted a new comment: Yes we are still talking 1.1.0 with the issue, sorry. I was describing the existing way that Sikuli is launched in reference to the question about using the .sikuli folder. In the case of finally switching to 1.1.0 that line would be changed, however I was only running my testing through eclipse at this point. I'm not sure why the traceback wouldn't correlate to 1.1.0 but I made sure to remove all of the existing sikuli data and re-install clean. I actually updated to the final release of Jython at the same time, so I know the jythonpath was cleared of old modules as well. In that example I attempted to find the image before passing it off to the other object and it was successful, and printing the image/pattern within the object that is supposed to look for it showed the filepath. I was even able to use the region itself within that object, but only when it was self.find(img) did it return that error. What I have been doing is operating under the assumption that, except in special cases, an object will not be called without knowing it's region on the screen. For example, after creating a region containing a text box based some find operation, that region is passed into TextBox: class TextBox(SomeSuperClass): def __init__(region, name=TextBox): """@type region: Region""" super(TextBox, self).__init__(region, name) # Anything else the Text Box needs def severalMethods(): do stuff region is assumed to be a Region in some capacity and even if it is one of my existing objects, type-hinting in the docstring helps assume it is some kind of Region. Eventually there is a super class that instantiates the region: class BaseClass(Region): def __init__(region, name, sikuli=sikuli, lookup=None, curDir=None): super(BaseClass, self).__init__(region) self.region=region # Actually wrapped in a property with a depreciation warning to keep backwards compatibility between our frameworks. def methodsIHaveAbstracted(): do stuff In the specific case of my issue, the constructor received it's own Region as region (and calls the init of the super providing this region) and then attempts to use the find method found through inheritance to search for this button. This is where I try self.region.find(img) or even just region.find(img) (should be the same anyway) and am able to find the region. Are you saying that instead of the BaseClass using super().__init__(region) it should be using Region.init(region)? While reviewing what I wrote above I tried some things. I printed out self.getX() (and y, w, h) and received 0, 0 900, 1600 as expected (the region is the entire screen). I then tried to do self.highlight(3) on the next line and logged the following: 2015-08-20 08:49:04,789 DEBUG - __init__:60 - (, java.lang.NullPointerException, ) Sorry to keep at it, I'm just going to need to prepare a description of what is and is not possible in the new version to my team so I want to make sure I understand the changes and limitations. My goal was run exactly what I have in place in 1.1.0 and see what breaks and then go from there. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #270538]: Is there a way to remove the sikuli import feature in the nightly build?
Question #270538 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270538 Ryan posted a new comment: Oh my gosh, I'm sorry... I forgot to put in the self parameters for the def statements. I have Eclipse set up to do that for me so I haven't typed self as a parameter in a really long time. class BaseClass(Region): def __init__(self, region, name): super(BaseClass, self).__init__(region) reg = sikuli.Region(sikuli.screen()) baseClass = BaseClass(reg) It would look like this. you can omit sikuli (that is just passing the sikuli wrapper we created with helper functions), and the lookup (secret :) ). curDir is just used to provide a working directory to any images that may be called in any of the class levels. I just included them for the context of more being included at that level, but they can just be omitted for a simplest working example. In the example I also included the way I am getting the screen's Region for completeness. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #270538]: Is there a way to remove the sikuli import feature in the nightly build?
Question #270538 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270538 Status: Answered => Solved Ryan confirmed that the question is solved: Thanks! That is very helpful! I'll do my best to test it. Currently every object in my framework will use this init method with some kind of derivative of a Region... sometimes a Region, sometimes a Match, sometimes my own objects. I'm not sure what else would go into testing it as I don't know much about the Jython/Java layer specifics. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #270538]: Is there a way to remove the sikuli import feature in the nightly build?
Question #270538 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270538 Ryan posted a new comment: Yes that is correct. Sorry, I was referring to your comment if I could thoroughly test it. I was just saying I'm not sure what to even test beyond what I am currently doing. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #270538]: Is there a way to remove the sikuli import feature in the nightly build?
Question #270538 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270538 Ryan posted a new comment: This is working for me now! -- You received this question notification because you are a member of Sikuli Drivers, which 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 #272088]: onAppear with an array of images?
New question #272088 on Sikuli: https://answers.launchpad.net/sikuli/+question/272088 https://pastebin.com/9fFre1Bm How do I go about doing something like this? It sounded like a fairly simple concept when I started, but it seems like onAppear only works with individual images. -- 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 #272088]: onAppear with an array of images?
Question #272088 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272088 Status: Answered => Solved Ryan confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #293512]: Adding Robotframework to SikuliX
New question #293512 on Sikuli: https://answers.launchpad.net/sikuli/+question/293512 Hello, I am trying to get SikuliX to 'play with' Robot Framework as outlines here: http://www.sikulix.com/support.html I am running with: - Win 10 64-bit - SikuliX 1.1.0 (2015-10-05_(17:07) - Installed with option 1 and 2 ticked - Python 2.7.5 - I downloaded the Robot folder via the link about and placed the files in '%appdata%/Roaming/SikuliX/Lib/robot/' What I am trying to do: Run a simple test case that will output some reporting to test that this is working. Getting a report output at the end of the test is the end goal here. What I have tried: 1) I have tried making a test script in Sikuli that contains the code found in testRun.py (via the link above), but I get these errors: [error] JythonSupport: exec: returns: Traceback (most recent call last): File "", line 1, in ImportError: No module named robot [error] JythonSupport: exec: returns: Traceback (most recent call last): File "", line 1, in NameError: name 'robot' is not defined 2) I have tried running a Robot Framwork test script for the calculator, outlined here: https://bitbucket.org/robotframework/robotdemo/src/51f472687b6a46e88b7c179423f0f336e19497fc/data_driven.robot?at=master&fileviewer=file-view-default When I do, I get this error: [error] script [ Testrobot ] stopped with error in line 33 at column 22 [error] SyntaxError ( "no viable alternative at character '$'", ) ^^I have no idea what that means 3) I've tried making sure all single or double or brackets or any sort are all closed or the correct kind - same errors. I am really lost at this point. Does anyone know what I am doing wrong? Or, does anyone just have a simple test case I can copy/paste into Sikuli so I can run it and see the HTML report files that are output? -- 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 #293512]: Adding Robotframework to SikuliX
Question #293512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/293512 Ryan posted a new comment: Thanks RaiMan - any help is appreciated by you or anyone. I am really liking Sikuli. The RunServer option worked like a charm! -- 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 #293512]: Adding Robotframework to SikuliX
Question #293512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/293512 Ryan posted a new comment: I should add that I am new to coding of any sort, so sorry if I ask questions that are super obvious. -- 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 #293512]: Adding Robotframework to SikuliX
Question #293512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/293512 Description changed to: Hello, I am trying to get SikuliX to 'play with' Robot Framework as outlines here: http://www.sikulix.com/support.html I am running with: - Win 10 64-bit - SikuliX 1.1.0 (2015-10-05_(17:07) - Installed with option 1 and 2 ticked - Python 2.7.5 - I downloaded the Robot folder via the link about and placed the files in '%appdata%/SikuliX/Lib/robot/' What I am trying to do: Run a simple test case that will output some reporting to test that this is working. Getting a report output at the end of the test is the end goal here. What I have tried: 1) I have tried making a test script in Sikuli that contains the code found in testRun.py (via the link above), but I get these errors: [error] JythonSupport: exec: returns: Traceback (most recent call last): File "", line 1, in ImportError: No module named robot [error] JythonSupport: exec: returns: Traceback (most recent call last): File "", line 1, in NameError: name 'robot' is not defined 2) I have tried running a Robot Framwork test script for the calculator, outlined here: https://bitbucket.org/robotframework/robotdemo/src/51f472687b6a46e88b7c179423f0f336e19497fc/data_driven.robot?at=master&fileviewer =file-view-default When I do, I get this error: [error] script [ Testrobot ] stopped with error in line 33 at column 22 [error] SyntaxError ( "no viable alternative at character '$'", ) ^^I have no idea what that means 3) I've tried making sure all single or double or brackets or any sort are all closed or the correct kind - same errors. I am really lost at this point. Does anyone know what I am doing wrong? Or, does anyone just have a simple test case I can copy/paste into Sikuli so I can run it and see the HTML report files that are output? -- 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 #293512]: Adding Robotframework to SikuliX
Question #293512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/293512 Ryan posted a new comment: Think support page on the Sikuli site says "As a workaround, you have to have a copy of the robot module (the folder robot containing the file __init__.py) in the SikulixAppData/Lib folder (about SikulixAppData see tab QuickStart and create it, if it does not exists yet)." Checking the QuickStart page, it says the 'SikuliAppData' location on windows is where the %AppData% path takes you - which is 'C:\Users\[user]\AppData\Roaming' for me I made a 'Lib' folder inside the 'SikuliX' folder and placed the 'robot' folder within the 'Lib' folder. So, I mistyped above. I have my robot folder in this location: '%appdata%/SikuliX/Lib/robot/' Fixing OP. -- 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 #293512]: Adding Robotframework to SikuliX
Question #293512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/293512 Ryan posted a new comment: Oooo, nice to hear it wasn't just me not doing something obvious :) And thanks for looking into this and fixing it. I didn't see a nightly build that was built on the Night Build page. Before I dive in and try to figure out how to build from the raw bits, I'll see if a build is built tomorrow. -- 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 #293512]: Adding Robotframework to SikuliX
Question #293512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/293512 Status: Answered => Solved Ryan confirmed that the question is solved: Hi RaiMan (or anyone else who is curious, I thought I would share the steps I needed to take to get robot working now that a new build has been kicked off. - I had to download the new nightly build of 1.1.1 (2016-05-19) - I nuked my old SikuliX install and reinstalled the one from 05-19 - I downloaded the Robot zip file from here: http://download.sikuli.de/robot.zip - I unzipped that zip file into %AppData%/SikuliX/Lib - I pasted the test robot testcase directly into a new script in SikuliX from here: http://sikulix-2014.readthedocs.io/en/latest/scenarios.html#using-robotframework The script ran and I see all the expected files - including the report files! WooOOO! The reason I had to download the robot.zip file was because SikuliX was complaining, when I ran the script, before getting the zip, that a platform.py file was missing. Diffing the zip file against what SikuliX installs by default to the Lib/robot dir - the zip came in at a few K lighter, but contained ~4 extra files. Now all I need to do is dive into how to tweak the report/script to my liking. -- 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 #293512]: Adding Robotframework to SikuliX
Question #293512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/293512 Ryan posted a new comment: I should add that when I ran the script a 2nd time the .robot directory (that was created in the 1st run) was auto-deleted and the script complained it couldn't find any files. Another run of the script created all the files again and outputted everything. I am not certain if this test script is supposed to do anything (as in actually launching firefox) because right now it is only popping up some messages with an OK button. -- 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 #293512]: Adding Robotframework to SikuliX
Question #293512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/293512 Ryan posted a new comment: I think I figured out how to fix the '.robot' directory deleting itself. I did not have 'from sikuli import *' in my script before the LoginLibrary class section. I added that and now it seems to run each time. -- 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 #293512]: [1.1.1] Using Robotframework with SikuliX (2016-05-20+)
Question #293512 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/293512 Ryan posted a new comment: Thanks for the update! can't wait to try 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
[Sikuli-driver] [Question #295053]: .focus() and .isRunning() Issues
New question #295053 on Sikuli: https://answers.launchpad.net/sikuli/+question/295053 Hello - I have been experiencing a strange issue with the App class. As of just last week I had been getting different behavior out of both these methods. Currently trying to get SikuliX to verify that a program which opens many different windows and processes started correctly. Most of the windows have java.exe as their process (but have different PIDs). Last week code of this nature worked well - app=App("window title name here") app.focus() if not app.isRunning(): print "False" else: print "True" After testing it was determined that the app.focus() was needed for app.isRunning() to pick if the window was running or not consistently. Now however after running app.focus() the app seems to be stripped of its window title and is now only recognized as it's short name- Code and Output Example: I will use DESIRED for the name of the app I want and OTHER as the title of another java.exe program that also starts with the program. This is the first one that opens so that is why it always shows up. Code: app = App("DESIRED") print(app.getName()) print(app.getWindow()) app.focus() print(app.getWindow()) print(app.isRunning()) print(app.getWindow()) print(app.isRunning()) Output: java.exe Desired App [error] App.focus failed: [12860:java.exe (OTHER)] DESIRED Other App False Other App True ** The script brings focus to the desired window correctly but then says the focus failed. EXAMPLE 2: Code: appName = "DESIRED" app = App(appName) print(app.getName()) print(app.getWindow()) App.focus(appName) print(app.getWindow()) print(app.isRunning()) print(app.getWindow()) print(app.isRunning()) print(app.getWindow()) output: java.exe DESIRED [log] App.focus: [8304:DESIRED] DESIRED False DESIRED True OTHER * Another person is running the same exact full scripts as I am and having it work the way it was last week, even though the log kicks back a focus error, it searches for the correct PID with .isRunning() and does not change it. Anyone have any input or ideas on this? Happy to provide other information. -- 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 #295053]: .focus() and .isRunning() Issues
Question #295053 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/295053 Ryan posted a new comment: Would still like some clarification on this question. However, using app.window() as a check seems to work much better. This seems to be contingent on things not being minimized. -- 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 #295053]: .focus() and .isRunning() Issues
Question #295053 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/295053 Description changed to: Hello - I have been experiencing a strange issue with the App class. As of just last week I had been getting different behavior out of both these methods. I had a long post here about how .focus() and .isRunning() behave erratically when you have many apps that run off java.exe (despite having different PIDs). To verify that all of them were running, you needed to focus() before doing an .isRunning() check. .focus() or .isRunning() seems to strip the app name that you pass in creating an app. Fortunately, this process can be solved by using app.window() to verify if a window is running. (Returns Null if no window). A bit more clarity on the .isRunning and .focus() methods would be very useful though as they do not seem completely reliable. -- 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
New question #198796 on Sikuli: https://answers.launchpad.net/sikuli/+question/198796 I am running Fedora 15 (64bit) and started sikuli.ide.sh from the command line. I made sure all packages needed are installed. When I take a screenshot of a button I want to click, I get the following output in sikuli-ide: Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /home/user/Downloads/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/libs/libVisionProxy.so: libml.so.2.1: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646) at java.lang.Runtime.load0(Runtime.java:787) at java.lang.System.load(System.java:1022) at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44) at org.sikuli.script.TextRecognizer.(TextRecognizer.java:24) at org.sikuli.ide.NamingPane.getFilenameFromImage(NamingPane.java:55) at org.sikuli.ide.CaptureButton.update(CaptureButton.java:149) at org.sikuli.script.CapturePrompt.notifyObserver(CapturePrompt.java:44) at org.sikuli.script.CapturePrompt$1.mouseReleased(CapturePrompt.java:197) at java.awt.Component.processMouseEvent(Component.java:6268) at java.awt .Component.processEvent(Component.java:6033) at java.awt.Container.processEvent(Container.java:2045) at java.awt.Window.processEvent(Window.java:1875) at java.awt.Component.dispatchEventImpl(Component.java:4629) at java.awt.Container.dispatchEventImpl(Container.java:2103) at java.awt.Window.dispatchEventImpl(Window.java:2517) at java.awt.Component.dispatchEvent(Component.java:4455) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649) at java.awt.EventQueue.access$000(EventQueue.java:96) at java.awt.EventQueue$1.run(EventQueue.java:608) at java.awt.EventQueue$1.run(EventQueue.java:606) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116) at java.awt.EventQueue$2.run(EventQueue.java:622) at java.awt.EventQueue$2.run(EventQueue.java:620) at java.security.AccessController.doPrivileged(Native M ethod) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105) at java.awt.EventQueue.dispatchEvent(EventQueue.java:619) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.run(EventDispatchThread.java:138) Any ideas on what's going on here? Thanks! -- You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 Description changed to: I am running Fedora 15 (64bit) and started sikuli.ide.sh from the command line. I made sure all packages needed are installed. When I take a screenshot of a button I want to click, I get the following output in sikuli-ide: Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /home/rhenrick/Downloads/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/libs/libVisionProxy.so: libml.so.2.1: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646) at java.lang.Runtime.load0(Runtime.java:787) at java.lang.System.load(System.java:1022) at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44) at org.sikuli.script.TextRecognizer.(TextRecognizer.java:24) at org.sikuli.ide.NamingPane.getFilenameFromImage(NamingPane.java:55) at org.sikuli.ide.CaptureButton.update(CaptureButton.java:149) at org.sikuli.script.CapturePrompt.notifyObserver(CapturePrompt.java:44) at org.sikuli.script.CapturePrompt$1.mouseReleased(CapturePrompt.java:197) at java.awt.Component.processMouseEvent(Component.java:6268) at java.awt .Component.processEvent(Component.java:6033) at java.awt.Container.processEvent(Container.java:2045) at java.awt.Window.processEvent(Window.java:1875) at java.awt.Component.dispatchEventImpl(Component.java:4629) at java.awt.Container.dispatchEventImpl(Container.java:2103) at java.awt.Window.dispatchEventImpl(Window.java:2517) at java.awt.Component.dispatchEvent(Component.java:4455) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649) at java.awt.EventQueue.access$000(EventQueue.java:96) at java.awt.EventQueue$1.run(EventQueue.java:608) at java.awt.EventQueue$1.run(EventQueue.java:606) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116) at java.awt.EventQueue$2.run(EventQueue.java:622) at java.awt.EventQueue$2.run(EventQueue.java:620) at java.security.AccessController.doPrivileged(Native M ethod) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105) at java.awt.EventQueue.dispatchEvent(EventQueue.java:619) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.run(EventDispatchThread.java:138) Any ideas on what's going on here? Thanks! -- You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 Description changed to: I am running Fedora 15 (64bit) and started sikuli-ide.sh from the command line. I made sure all packages needed are installed. When I take a screenshot of a button I want to click, I get the following output in sikuli-ide: Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /home/rhenrick/Downloads/Sikuli-X-1.0rc3 (r905)-linux-x86_64/Sikuli-IDE/libs/libVisionProxy.so: libml.so.2.1: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646) at java.lang.Runtime.load0(Runtime.java:787) at java.lang.System.load(System.java:1022) at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44) at org.sikuli.script.TextRecognizer.(TextRecognizer.java:24) at org.sikuli.ide.NamingPane.getFilenameFromImage(NamingPane.java:55) at org.sikuli.ide.CaptureButton.update(CaptureButton.java:149) at org.sikuli.script.CapturePrompt.notifyObserver(CapturePrompt.java:44) at org.sikuli.script.CapturePrompt$1.mouseReleased(CapturePrompt.java:197) at java.awt.Component.processMouseEvent(Component.java:6268) at java.awt .Component.processEvent(Component.java:6033) at java.awt.Container.processEvent(Container.java:2045) at java.awt.Window.processEvent(Window.java:1875) at java.awt.Component.dispatchEventImpl(Component.java:4629) at java.awt.Container.dispatchEventImpl(Container.java:2103) at java.awt.Window.dispatchEventImpl(Window.java:2517) at java.awt.Component.dispatchEvent(Component.java:4455) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649) at java.awt.EventQueue.access$000(EventQueue.java:96) at java.awt.EventQueue$1.run(EventQueue.java:608) at java.awt.EventQueue$1.run(EventQueue.java:606) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116) at java.awt.EventQueue$2.run(EventQueue.java:622) at java.awt.EventQueue$2.run(EventQueue.java:620) at java.security.AccessController.doPrivileged(Native M ethod) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105) at java.awt.EventQueue.dispatchEvent(EventQueue.java:619) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.run(EventDispatchThread.java:138) Any ideas on what's going on here? Thanks! -- You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 ryan posted a new comment: I am having trouble locating libcv2.1 for Fedora 15. Also, when I checked, OpenCV2.2 was the Fedora 15 version. Will that cause any issues since the deps state 2.1 is needed? Thanks. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 ryan posted a new comment: Is there a way to get "RayMan" involved in this discussion? I am interested in knowing how to compile Sikuli so I can use 2.2 on Fedora 15. I (and another friend at work) tried compiling on F15 along with compiling cv2.1 and both failed. My other option is to setup a Fedora14 VM, run Sikuli on it, and run the tests on a client that I get from an SSH tunnel into a Fedora15 box. I would like to keep it simple and not have to do that though. This all seems like a dependency issue and Sikuli not being updated to support the newest versions of libs. Any idea when an update will be released? Thanks. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 ryan posted a new comment: Thanks for all of the input, but I am not getting anywhere. I tried F14, F15 and F17. I also tried Ubuntu 12.04 and actually got farther with Ubuntu, but there are still issues. I think I just need to wait for the next Sikuli update (if there will be one). Hopefully the next version will include updated dependency libs (using OpenCV 2.2 etc.) Does anyone know which Linux dist Sikuli works better on? It is great in Windows, but I test on Linux. Thanks. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 ryan posted a new comment: --- the current Sikuli is able to work with version 2.2 What about 2.3? That is the latest for Fedora 17. Also, does it only work if OpenCV is compiled? I have tried both compiling and installing 2.1 & 2.3 rpm's with F17 with no luck. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 ryan posted a new comment: Is this still a good source on how to build? https://answers.launchpad.net/sikuli/+faq/1453 Also, do you know if the devs are still working on Sikuli, or has it been dropped? Thanks for all of your help, BTW. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 ryan posted a new comment: I am trying to build on Fedora 17 (64-Bit). So far I am having trouble generating the makefiles with CMake. Java version is 1.7, but Sikuli doesn't like it. This is the error I am getting when I try to generate makefiles: (Does this make any sense to you?) CMake Error: your Java compiler: "CMAKE_Java_COMPILER-NOTFOUND" was not found. Please set CMAKE_Java_COMPILER to a valid compiler path or name. Tesseract-OCR Data Path: /usr/share/tesseract/tessdata CMake Warning at /usr/share/cmake/Modules/FindJava.cmake:120 (message): regex not supported: java version "1.7.0_b147-icedtea" OpenJDK Runtime Environment (fedora-2.1.fc17.6-x86_64) OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode). Please report Call Stack (most recent call first): CMakeLists.txt:12 (FIND_PACKAGE) CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find Java: Found unsuitable version "..", but required is at least "1.6" (found /bin/java) Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:286 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake/Modules/FindJava.cmake:184 (find_package_handle_standard_args) CMakeLists.txt:12 (FIND_PACKAGE) -- Configuring incomplete, errors occurred! You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 ryan posted a new comment: Okay I got java-1.6.0 installed, now this is my error: Tesseract-OCR Data Path: /usr/share/tesseract/tessdata -- The CXX compiler identification is unknown CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. Tesseract-OCR Data Path: /usr/share/tesseract/tessdata -- checking for module 'opencv' -- package 'opencv' not found CMake Error at /home/rhenrick/sikuli/cmake_modules/FindOpenCV.cmake:154 (message): OpenCV required but some headers or libs not found. Please specify OpenCV directory using OpenCV_DIR env. variable Call Stack (most recent call first): src/main/native/CMakeLists.txt:26 (FIND_PACKAGE) -- Configuring incomplete, errors occurred! You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 ryan posted a new comment: Realized I needed to install C++ ... Now I am left with the following error: Tesseract-OCR Data Path: /usr/share/tesseract/tessdata Tesseract-OCR Data Path: /usr/share/tesseract/tessdata -- checking for module 'opencv' -- package 'opencv' not found CMake Error at /home/rhenrick/sikuli/cmake_modules/FindOpenCV.cmake:154 (message): OpenCV required but some headers or libs not found. Please specify OpenCV directory using OpenCV_DIR env. variable Call Stack (most recent call first): src/main/native/CMakeLists.txt:26 (FIND_PACKAGE) -- Configuring incomplete, errors occurred! You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 ryan posted a new comment: No I did not know OpenCV *needs* to be 2.1 on the first run. I don't believe this is documented anywhere. Thanks for the tip. I will try this and let you know how it goes. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #198796]: Fedora 15 - libVisionProxy.so: libml.so.2.1
Question #198796 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/198796 ryan posted a new comment: I give up. Sikuli will not work on Fedora as long as it needs OpenCV 2.1. Sikuli needs to be updated do it uses updated libraries and dependencies. While trying to make/build OpenCV 2.1 I would get the following error at 84% ../../lib/libhighgui.so.2.1.0: undefined reference to `cvCreateCameraCapture_V4L(int)' collect2: error: ld returned 1 exit status make[2]: *** [bin/opencv_createsamples] Error 1 make[1]: *** [apps/haartraining/CMakeFiles/createsamples.dir/all] Error 2 make: *** [all] Error 2 -- You received this question notification because you are a member of Sikuli Drivers, which 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 #254915]: Unable to type URL because of shifting problem
New question #254915 on Sikuli: https://answers.launchpad.net/sikuli/+question/254915 Hello, I am trying to have Sikuli type a URL into a form, but have a problem because the shift key is not being activated. In Sikuli: type("http://google.com";) I want http://google.com to be inserted into the form. Instead, it is typing http;//google.com I have tried several things including breaking the URL into pieces, saying first type("http") then adding either type(";", KeyModifier.SHIFT) type(";", Key.SHIFT) Unfortunately none of these are working. Any help/suggestions would be appreciated -- You received this question notification because you are a member of Sikuli Drivers, which 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 #254915]: Unable to type URL because of shifting problem
Question #254915 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/254915 Status: Answered => Open Ryan is still having a problem: When I use a paste in this Windows program, it results in only a "v" being inserted, which is why I turned to type() -- You received this question notification because you are a member of Sikuli Drivers, which 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 #254915]: Unable to type URL because of shifting problem
Question #254915 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/254915 Ryan posted a new comment: print() works fine, but neither paste or type work in this situation -- You received this question notification because you are a member of Sikuli Drivers, which 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 #254915]: Unable to type URL because of shifting problem
Question #254915 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/254915 Status: Needs information => Open Ryan gave more information on the question: I'm using a 3rd-party email data scraping application that requires pasting URLs of pages to be scraped. ctrl-v and cmd-v both work for me when using the keyboard on my computer, however I can't get sikuli to successfully complete the same tasks. The program is running on Windows 8 while using Parallels on a Mac w/ OS X 10.9.4. I'm in the US using the "normal" English keyboard. Does that help? Thanks a ton for your help! -- You received this question notification because you are a member of Sikuli Drivers, which 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 1379844] [NEW] Functions cannot be cast as a handler in Eclipse integration
Public bug reported: I'm running some user acceptance tests before beginning a section of a project, so the code is very generic. I'm attempting to create a background listener before launching my automation code to look for unexpected errors within UI regression suites. I'm getting the following error: Traceback (most recent call last): File "C:\test\TPS_70\Script\GUI\MatchingExample.sikuli\MatchingExample.py", line 18, in r.onAppear(sikuli.Pattern("folder.png").similar(0.69), errorOut) at org.sikuli.script.Region.onAppear(Region.java:2023) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) java.lang.ClassCastException: java.lang.ClassCastException: org.python.core.PyFunction cannot be cast to org.sikuli.script.SikuliEventObserver This is coming from the following code: import sikuli.Sikuli as sikuli sikuli.Settings.OcrTextRead = True sikuli.Settings.OcrTextSearch = True import datetime import time def errorOut(event): assert False, "WOO!" r = sikuli.Region.create(1 , 35,500,500) r.onAppear(sikuli.Pattern("thing.png").similar(0.69), errorOut) print "before" + str(datetime.datetime.now().time().isoformat()) r.observe(25, background=True) print "onward" + str(datetime.datetime.now().time().isoformat()) for x in xrange(15): time.sleep(1) print "This" I've been waiting about 5-10 seconds and then opening the Google Chrome homepage which is what "thing.png" is of, and I want it to throw the exception when it shows up in the middle of the print statements. It is working as expected in the Sikuli IDE, but we are using Eclipse for our projects as they are very large. I'm using Sikulix 1.0.1 but to use the IDE I have needed to replace the files with an r930 build (Work around I found online for a bug causing the IDE not to launch), this causes an error that org.sikuli.basics cannot be found if I attempt to run the script in Eclipse with this version being run. It's a 32-bit system. ** 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/1379844 Title: Functions cannot be cast as a handler in Eclipse integration Status in Sikuli: New Bug description: I'm running some user acceptance tests before beginning a section of a project, so the code is very generic. I'm attempting to create a background listener before launching my automation code to look for unexpected errors within UI regression suites. I'm getting the following error: Traceback (most recent call last): File "C:\test\TPS_70\Script\GUI\MatchingExample.sikuli\MatchingExample.py", line 18, in r.onAppear(sikuli.Pattern("folder.png").similar(0.69), errorOut) at org.sikuli.script.Region.onAppear(Region.java:2023) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) java.lang.ClassCastException: java.lang.ClassCastException: org.python.core.PyFunction cannot be cast to org.sikuli.script.SikuliEventObserver This is coming from the following code: import sikuli.Sikuli as sikuli sikuli.Settings.OcrTextRead = True sikuli.Settings.OcrTextSearch = True import datetime import time def errorOut(event): assert False, "WOO!" r = sikuli.Region.create(1 , 35,500,500) r.onAppear(sikuli.Pattern("thing.png").similar(0.69), errorOut) print "before" + str(datetime.datetime.now().time().isoformat()) r.observe(25, background=True) print "onward" + str(datetime.datetime.now().time().isoformat()) for x in xrange(15): time.sleep(1) print "This" I've been waiting about 5-10 seconds and then opening the Google Chrome homepage which is what "thing.png" is of, and I want it to throw the exception when it shows up in the middle of the print statements. It is working as expected in the Sikuli IDE, but we are using Eclipse for our projects as they are very large. I'm using Sikulix 1.0.1 but to use the IDE I have needed to replace the files with an r930 build (Work around I found online for a bug causing the IDE not to launch), this causes an error that org.sikuli.basics cannot be found if I attempt to run the script in Eclipse with this version being run. It's a 32-bit system. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1379844/+subscriptions ___ Mailing list: https://launchpad.net/~sikuli-driver Post to
[Sikuli-driver] [Bug 1379844] Re: Functions cannot be cast as a handler in Eclipse integration
That did the trick, thanks! -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1379844 Title: Functions cannot be cast as a handler in Eclipse integration Status in Sikuli: New Bug description: I'm running some user acceptance tests before beginning a section of a project, so the code is very generic. I'm attempting to create a background listener before launching my automation code to look for unexpected errors within UI regression suites. I'm getting the following error: Traceback (most recent call last): File "C:\test\TPS_70\Script\GUI\MatchingExample.sikuli\MatchingExample.py", line 18, in r.onAppear(sikuli.Pattern("folder.png").similar(0.69), errorOut) at org.sikuli.script.Region.onAppear(Region.java:2023) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) java.lang.ClassCastException: java.lang.ClassCastException: org.python.core.PyFunction cannot be cast to org.sikuli.script.SikuliEventObserver This is coming from the following code: import sikuli.Sikuli as sikuli sikuli.Settings.OcrTextRead = True sikuli.Settings.OcrTextSearch = True import datetime import time def errorOut(event): assert False, "WOO!" r = sikuli.Region.create(1 , 35,500,500) r.onAppear(sikuli.Pattern("thing.png").similar(0.69), errorOut) print "before" + str(datetime.datetime.now().time().isoformat()) r.observe(25, background=True) print "onward" + str(datetime.datetime.now().time().isoformat()) for x in xrange(15): time.sleep(1) print "This" I've been waiting about 5-10 seconds and then opening the Google Chrome homepage which is what "thing.png" is of, and I want it to throw the exception when it shows up in the middle of the print statements. It is working as expected in the Sikuli IDE, but we are using Eclipse for our projects as they are very large. I'm using Sikulix 1.0.1 but to use the IDE I have needed to replace the files with an r930 build (Work around I found online for a bug causing the IDE not to launch), this causes an error that org.sikuli.basics cannot be found if I attempt to run the script in Eclipse with this version being run. It's a 32-bit system. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1379844/+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] [Question #255662]: Functions cannot be cast as a handler in Eclipse integration
New question #255662 on Sikuli: https://answers.launchpad.net/sikuli/+question/255662 I'm running some user acceptance tests before beginning a section of a project, so the code is very generic. I'm attempting to create a background listener before launching my automation code to look for unexpected errors within UI regression suites. I'm getting the following error: Traceback (most recent call last): File "C:\test\TPS_70\Script\GUI\MatchingExample.sikuli\MatchingExample.py", line 18, in r.onAppear(sikuli.Pattern("folder.png").similar(0.69), errorOut) at org.sikuli.script.Region.onAppear(Region.java:2023) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) java.lang.ClassCastException: java.lang.ClassCastException: org.python.core.PyFunction cannot be cast to org.sikuli.script.SikuliEventObserver This is coming from the following code: import sikuli.Sikuli as sikuli sikuli.Settings.OcrTextRead = True sikuli.Settings.OcrTextSearch = True import datetime import time def errorOut(event): assert False, "WOO!" r = sikuli.Region.create(1 , 35,500,500) r.onAppear(sikuli.Pattern("thing.png").similar(0.69), errorOut) print "before" + str(datetime.datetime.now().time().isoformat()) r.observe(25, background=True) print "onward" + str(datetime.datetime.now().time().isoformat()) for x in xrange(15): time.sleep(1) print "This" I've been waiting about 5-10 seconds and then opening the Google Chrome homepage which is what "thing.png" is of, and I want it to throw the exception when it shows up in the middle of the print statements. It is working as expected in the Sikuli IDE, but we are using Eclipse for our projects as they are very large. I'm using Sikulix 1.0.1 but to use the IDE I have needed to replace the files with an r930 build (Work around I found online for a bug causing the IDE not to launch), this causes an error that org.sikuli.basics cannot be found if I attempt to run the script in Eclipse with this version being run. It's a 32-bit system. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256107]: Is it possible to stop an observer without an event occuring?
New question #256107 on Sikuli: https://answers.launchpad.net/sikuli/+question/256107 I'm looking to stop an observer if the event hasn't occurred by the end of the script. Depending on which project we are automation I'm looking to create several different observers to monitor the execution for certain pop-up conditions (such as the word ERROR in a status bar) that may or may not need to halt execution, and save a screen shot. In reading the docs and questions posted here it looks like the event returned from an onAppear() observer is used to stop the observer, however there is a chance the event will not occur before the script completes. Currently the observers are staying open beyond execution time. I can include a stripped-down code snippet if necessary. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #256107]: Is it possible to stop an observer without an event occuring?
Question #256107 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/256107 Description changed to: I'm looking to stop an observer when the event hasn't occurred by the end of the script (or after some predetermined step is complete). Depending on which project we are automation I'm looking to create several different observers to monitor the execution for certain pop-up conditions (such as the word ERROR in a status bar) that may or may not need to halt execution, and save a screen shot. In reading the docs and questions posted here it looks like the event returned from an onAppear() observer is used to stop the observer, however there is a chance the event will not occur before the script completes. Currently the observers are staying open beyond execution time. I can include a stripped-down code snippet if necessary. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #255662]: مشاهدة فيلم الجزيرة الجزء الثانى 2014 كامل aljazeera يوتيوب dvd
Question #255662 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255662 Ryan posted a new comment: I appologize, my account may have been hacked? I certainly did not turn this question into foreign spam -- You received this question notification because you are a member of Sikuli Drivers, which 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 #255662]: Jython scripting: using observe(): handler functions cannot be cast as a handler in Eclipse integration
Question #255662 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255662 Summary changed to: Jython scripting: using observe(): handler functions cannot be cast as a handler in Eclipse integration Description changed to: I'm running some user acceptance tests before beginning a section of a project, so the code is very generic. I'm attempting to create a background listener before launching my automation code to look for unexpected errors within UI regression suites. I'm getting the following error: Traceback (most recent call last): File "C:\test\TPS_70\Script\GUI\MatchingExample.sikuli\MatchingExample.py", line 18, in r.onAppear(sikuli.Pattern("folder.png").similar(0.69), errorOut) at org.sikuli.script.Region.onAppear(Region.java:2023) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) java.lang.ClassCastException: java.lang.ClassCastException: org.python.core.PyFunction cannot be cast to org.sikuli.script.SikuliEventObserver This is coming from the following code: import sikuli.Sikuli as sikuli sikuli.Settings.OcrTextRead = True sikuli.Settings.OcrTextSearch = True import datetime import time def errorOut(event): assert False, "WOO!" r = sikuli.Region.create(1 , 35,500,500) r.onAppear(sikuli.Pattern("thing.png").similar(0.69), errorOut) print "before" + str(datetime.datetime.now().time().isoformat()) r.observe(25, background=True) print "onward" + str(datetime.datetime.now().time().isoformat()) for x in xrange(15): time.sleep(1) print "This" I've been waiting about 5-10 seconds and then opening the Google Chrome homepage which is what "thing.png" is of, and I want it to throw the exception when it shows up in the middle of the print statements. It is working as expected in the Sikuli IDE, but we are using Eclipse for our projects as they are very large. I'm using Sikulix 1.0.1 but to use the IDE I have needed to replace the files with an r930 build (Work around I found online for a bug causing the IDE not to launch), this causes an error that org.sikuli.basics cannot be found if I attempt to run the script in Eclipse with this version being run. It's a 32-bit system. The question was replaced with spam so I am fixing it. (Second update) replaced with the wrong question, sorry -- You received this question notification because you are a member of Sikuli Drivers, which 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 #255662]: Stopping an observer outside of the handler
Question #255662 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255662 Summary changed to: Stopping an observer outside of the handler Description changed to: I'm looking to stop an observer if the event hasn't occurred by the end of the script. Depending on which project we are automation I'm looking to create several different observers to monitor the execution for certain pop-up conditions (such as the word ERROR in a status bar) that may or may not need to halt execution, and save a screen shot. In reading the docs and questions posted here it looks like the event returned from an onAppear() observer is used to stop the observer, however there is a chance the event will not occur before the script completes. Currently the observers are staying open beyond execution time. I can include a stripped-down code snippet if necessary. The question was replaced with spam so I am fixing it. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #255662]: Jython scripting: using observe(): handler functions cannot be cast as a handler in Eclipse integration
Question #255662 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255662 Ryan posted a new comment: I opened up the email that I received when I posted the new bug/question and the information was contained in the email. I tried checking the history first to see if it was accessible that way but it wasn't. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #143124]: Sikuli finds the area the IDE command *was* in ... ?
New question #143124 on Sikuli: https://answers.launchpad.net/sikuli/+question/143124 Hello! I am a new to Sikuli. I've worked with other macro programs before and recognize the advantage Sikuli has. I plan to become an expert at Sikuli and give back to the community by helping others as I do so. HOWEVER A major problem is stopping my dead in my tracks! OS: Windows 7 Home Premium x64 Sikuli ver x1.0rc1 *you should update JVM and try again before asking question: I just did but have to reboot! I will report back as "fixed" if that fixes it. *state what you want to achieve: A very simple beginner script I'm building! I have switchApp("Mozilla Firefox") click(**image of a tab within firefox. the icon and the title of the website but no more**) *state the part you are stuck at: It switches over to firefox fine everytime. HOWEVER the tab is not always found! I messed around with the image recognition settings in the preview window. It seems this tab is found perfectly every time (via this window)! Still, I moved the slider down to .5 and 1 match thinking it may solve this problem. Tried many other settinsg also including the default. While the preview window continues detects the area I want perfectly ... The second time I run the script and thereafter, Sikuli will detect ITSELF! Well, it will click exactly where the image of the tab is in the IDE scripting window (within the click() command)!! Except the IDE wnidow does minimize or hide itself as soon as I click run. Whether I choose run or run w/ show steps, it clicks whereever that image within the command was befoer I clicked run. I searched thsi site and the bugs everywhere and couldnt find any other mentions of this problem. I already ensured the tab looks IDENTICAL when I run Sikuli (I ensure that by clicking to another tab so that one is not active and highlighting in any way) Why the heck is this happening and how do i stop it?? Going to reboot now and try with new JVM... will update P.S. While I have an experts attention how do I program what happens when NO image like that is found on the screen? A quick command mention i all I need to research it, thank you :) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #143124]: delete me!
Question #143124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/143124 Summary changed to: delete me! Description changed to: Nevermind, the new JRE did indeed fix the problem! Dont want to waste your time with questions already answered .. :) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #674340]: Issue with clicking anything inside a VMware Workstation 14 VM.
New question #674340 on Sikuli: https://answers.launchpad.net/sikuli/+question/674340 I'm running(Windows 10, Java8(64) 1.8.0_181) and SikuliIDE 1.1.3 as admin. I have built a Centos 7 VM using VMware Workstaion 14. Any click cmd I use in sikuli seems to not work. The mouse will move to that location and Sikuli logs a CLICK but nothing happens in the VM. I've tried multiple clicks in that same area and again Sikuli logs them as successful clicks but nothing takes place in the VM. I've even giving the script a sleep time so I can manual click into the VM to provide focus and Sikuli will them move to the desired location and issues a click but it does nothing. Once again I can click the desired location and it functions as expected. Any help would be greatly appreciated. -Ryan -- 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 #704189]: NameError: name 'use' is not defined
New question #704189 on SikuliX: https://answers.launchpad.net/sikuli/+question/704189 I am a noob when it comes to programming so I did my best to figure this out: I am using Sikuli to interface with Eclipse IDE to run some scripts within a file called "Ryancode". The file "Ryancode" is very long and I inherited "Ryancode" from another user who I cannot get ahold of. Anyway, I am running the code below within Sikuli IDE: from sikuli import # import Ryancode print("ryan") tmpRegion = tmpRegion.highlight(2) Ryancode.captureImage(none, 'ryan', tmpRegion) print("done) The error message I get is below: Exception in thread "Thread-32" Traceback (most recent call last): File "", line 1, in NameError: name 'use' is not defined Is there a variable named 'use' within the Sikuli lib folder that is not defined? I am confused on what's happening. My main objective is to use the different functions within "Ryancode" to run regression tests on my system. ie. taking screenshots of different GUI's, CLI output to prove that the network is setup/running properly. -- 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