New question #207712 on Sikuli:
https://answers.launchpad.net/sikuli/+question/207712

When running a script in Sikuli, I keep getting the following error:

"You are missing a mandatory prerequisite and should not run the product until 
you install or upgrade Visual C++ Runtime 9.0.30729.  Use the diagnostics 
window for more details."

Script:

MyPath = r'C:\Mypath'
openApp(MyPath)
wait("Login.png",300)
click("Username.png")
type('MyUserName')
click("Password.png")
type('MyPassword')
click("1346776285902.png")

Details in Sikuli IDE (I'm running Sikuli X-1.03c3 (r905):

[error] Error message: Traceback (most recent call last):
File "C:\Users\msweeney\AppData\Local\Temp\sikuli-tmp2843484462257973731.py", 
line 4, in 
click("Username.png")
Line 8, in file 
C:\Users\msweeney\AppData\Local\Temp\sikuli-tmp2843484462257973731.py

at org.sikuli.script.Region.handleFindFailed(Region.java:420) 
at org.sikuli.script.Region.wait(Region.java:511) 
at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source) 
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) 

org.sikuli.script.FindFailed: FindFailed: can not find Username.png on the 
screen.
Line 8, in file 
C:\Users\msweeney\AppData\Local\Temp\sikuli-tmp2843484462257973731.py

Some or all of the traceback error message may be because the first error ("... 
missing mandatory prerequisite...") is obscuring the UI when it pops up, 
including the controls Sikuli is looking for.  The script successfully launches 
my application, then I get the error.  I don't see this error when I run the 
app manually-- only when trying to run it via Sikuli.

The machine is a Windows 7 machine (64-bit).  I installed a 32-bit version of 
the Java 7 JRE, and I've made the changes to point to the JRE7 bin directory in 
the batch files and PATH environment variables.  If I look at a list of 
installed programs, I DO see that the Visual C++ Runtime is installed (the 
version number in the error message corresponds to Visual C++ 2008), and I've 
run Windows Update multiple times to check for all available updates.

Does anybody have any ideas about what might be causing the error?

-- 
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     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to