sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09462
[Bug 912477] Re: Getting unicode decode error while running the test
This happened to me as well when trying to run a script via
org.sikuli.script.ScriptRunner.runPython. There are only English
characters in the script path given as argument to runPython, and has
been working just fine - however, when there is a "\x" as part of the
path, it seems like it will always be interpreted as a unicode escape,
no matter what I try. In other words, I've tried
runner.runPython("C:\\xpath\\myscript.sikuli");
runner.runPython("C:\\\\xpath\\\\myscript.sikuli"); // try to escape the backslash!
runner.runPython("r\"C:\\xpath\\myscript.sikuli\""); // how about a raw string..?
runner.runPython("C:/xpath/myscript.sikuli");
The last one actually works when the path does not contain a /x, so I guess runPython is taking my path and thwarting all my attempts to fix the problem. Any ideas?
(and yeah, sure, "just move your script", but I would like to avoid that if possible :) )
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/912477
Title:
Getting unicode decode error while running the test
Status in Sikuli:
New
Bug description:
I have installed Sikuli X-1.0rc3 on Windows XP and trying to run my
first test script. I have set the JAVA_HOME to jre installed path(java
version 6.0.110.03).
script contains the following:
click("jstarr.png")
Getting the following error while runing the script:
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
[error] Stopped
[error] Error message: UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 11-13: truncated \xXX
Please help in resolving this.
Thanks,
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/912477/+subscriptions
References