Error: 'function' object has no attribute 'isAborted'

Asked by alex

Haven't used SikuliX in a while, and now I can't get the simplest of scripts working. E.g.
def runner():
    hover(Pattern("1577027211309.png").targetOffset(-81,89))
runner()

Throws the following error:
[error] script [ test ] stopped with error in line 3
[error] AttributeError ( 'function' object has no attribute 'isAborted' )
[error] --- Traceback --- error source first
line: module ( function ) statement
3: main ( <module> ) runner()
[error] --- Traceback --- end --------------

Using Windows 10, behavior is the same with the current stable 2.0.1 and the nightly 2.1.0 version.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
Last query:
Last reply:
Revision history for this message
Best masuo (masuo-ohara) said :
#1

Function name conflicts with another function name.
For example, change the function name "runner" to "aaa".

Revision history for this message
alex (privatesnowball) said :
#2

Oof!
That actually did the trick. My main function was always called "runner", and I had no problems in the past with older versions.
Thanks a lot.

Revision history for this message
alex (privatesnowball) said :
#3

Thanks masuo, that solved my question.