← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #687415]: Strange problem or a bug in Sikuli

 

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

    Status: Answered => Open

Mark McGuinn is still having a problem:
Manfred,

   thanks for the suggestion, unfortunately it is causing an exception
when I try to implement it:


[error] script [ auction_control ] stopped with error at line --unknown--
[error] Error caused by: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value

I had a look for the error and there is a suggestion that this is a
problem in jython. I am also still wondering why the correct code is
returned when the int() function is not used, but when it is there  a
problem shows up even when the screen is exactly the same.

regards
Mark


The Future Is Certain Give Us Time To Work It Out
________________________________
From: bounces@xxxxxxxxxxxxx <bounces@xxxxxxxxxxxxx> on behalf of Manfred Hampl <question687415@xxxxxxxxxxxxxxxxxxxxx>
Sent: Sunday 22 December 2019 18:04
To: bb4wu@xxxxxxxxxxx <bb4wu@xxxxxxxxxxx>
Subject: Re: [Question #687415]: Strange problem or a bug in Sikuli

Your 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​
…

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/sikuli/+question/687415/+confirm?answer_id=3

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/sikuli/+question/687415

You received this question notification because you asked the question.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.