Question #687415 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687415

    Status: Open => Answered

Manfred Hampl proposed the following answer:
"ValueError ( invalid literal for int() with base 10: '' )​"

This indicates that the value that you wanted to convert was the empty
string which cannot be converted into a number.

My guess:
The screen shows something unexpected - not "PLETE", not "SOON", but also not a 
number, or the OCR program could not correctly interpret the text on the screen

Possible workaround:
In addition the the if-s for "PLETE" and "SOON" add also a branch for the case 
that time_left_i[0] is the empty string after the re.sub action.

maybe something like
…
        elif time_left_i[0] == "":​
             print("Empty string")​
             break​
…

-- 
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

Reply via email to