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

Asked by alex on 2019-12-22

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
2019-12-22
Last query:
2019-12-22
Last reply:
2019-12-22
Best masuo (masuo-ohara) said : #1

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

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.

alex (privatesnowball) said : #3

Thanks masuo, that solved my question.