sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05762
[Bug 862060] Re: X-1.0rc3 (931): Windows7: Chinese: Crashes on capture and images not found
I could reproduce the error on my german Windows 7 Sikuli build 927
The problem are the unicode characters in the image filename.
having e.g. the utf-8 character "AD00" (some Hangul whatever ;-) shows
the character in the IDE environment as compound Hangul letter.
When using it as part of a filename (e.g. absolute image path), in the
windows filename, this one unicode character is replaced by extended
ascii characters (in this case ê` ), with the effect that the find()
says: not found on screen with the correct filename.
to reproduce:
imgx = "afilename containing non ascii.png"
img = capture()
import shutil
shutil.move(img, getBundlePath()+"\\"+imgx) # works only if imgx does not exist yet
***** Conclusion in this case: If the script would be saved in a path
containing only ascii characters and the image filenames too only
consist of ascii characters, then it should work.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/862060
Title:
X-1.0rc3 (931): Windows7: Chinese: Crashes on capture and images not
found
Status in Sikuli:
New
Bug description:
Sikuli is so great! When the first time I heard about it it was only
available on Mac, "what a pity!", I said. I just now noticed it
supports Windows now! So I tried it. Unfortunately, it doesn't seem
like my windows 7 Ultimate (Chinese) 64bit.
I followed the getting started tutorial and tried capturing a portion
of my screenshot (the Start button), once I selected a rectangular
area, the program exited abnormally, without any error message. The
result is the same no matter I clicked the capture screen toolbar
button, or clicked the "Click" function name on the left list.
So I also tried using another program to capture the Windows Start
menu button and saved it to my disk, then manually added the following
script:
Click(<my-previously-saved-png-image>).
And the log window shows the following:
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
[error] 被停止 (translation: stopped)
[error] 第1行发生错误 (translation: error in line 1)
[error] 错误信息 (translation: error message): Traceback (most recent call last):
File "C:\Users\????\AppData\Local\Temp\sikuli-tmp2386320233862351632.py", line 1, in
click("start button.png")
Line 1, in file C:\Users\????\AppData\Local\Temp\sikuli-tmp2386320233862351632.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 start button.png on the screen.
Line 1, in file C:\Users\????\AppData\Local\Temp\sikuli-tmp2386320233862351632.py
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/862060/+subscriptions
References