← Back to team overview

sikuli-driver team mailing list archive

[Bug 1595315] [NEW] [1.1.1] Region.observe(10) throws error in Region.py

 

Public bug reported:

Hey there,

I'm trying to use an observer for the first time so maybe this is me
doing something wrong, but I haven't been able to figure it out.

After setting up my region and the onAppear observation and my event
handler function. I call observe with a time of 10 and it gives me an
error on execution:

File "/Applications/SikuliX.app/Contents/Java/sikulix.jar/Lib/sikuli/Region.py", line 47, in observe
    return JRegion.observeJ(waitTime, background)
TypeError: observeJ(): expected 3 args; got 2

I'm using 1.1.1 (2016-06-08_01:00nightly) on OSX 10.11.5

** Affects: sikuli
     Importance: High
     Assignee: RaiMan (raimund-hocke)
         Status: Fix Committed

** Changed in: sikuli
       Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.1

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1595315

Title:
  [1.1.1] Region.observe(10) throws error in Region.py

Status in Sikuli:
  Fix Committed

Bug description:
  Hey there,

  I'm trying to use an observer for the first time so maybe this is me
  doing something wrong, but I haven't been able to figure it out.

  After setting up my region and the onAppear observation and my event
  handler function. I call observe with a time of 10 and it gives me an
  error on execution:

  File "/Applications/SikuliX.app/Contents/Java/sikulix.jar/Lib/sikuli/Region.py", line 47, in observe
      return JRegion.observeJ(waitTime, background)
  TypeError: observeJ(): expected 3 args; got 2

  I'm using 1.1.1 (2016-06-08_01:00nightly) on OSX 10.11.5

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1595315/+subscriptions


Follow ups