Subregion is not defined in 0.10

Bug #575404 reported by chimanfu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Won't Fix
Undecided
Unassigned

Bug Description

got this error when running in 0.10, how to fix it?
we may want to be fully compatible with previous version of sikuli.

[sikuli] Stopped
[sikuli] An error occurs at line 210
[sikuli] Error message:
Traceback (most recent call last):
  File "C:\DOCUME~1\jfu\LOCALS~1\Temp\sikuli-tmp3191341898822436887.py", line 210, in <module>
    frontPageRegion=Subregion(443,431,591,196)
NameError: name 'Subregion' is not defined

Revision history for this message
RaiMan (raimund-hocke) wrote :

Since the API has changed in many aspects (see documentation) it will not be possible to be fully compatible.

the case Subregion can be fixed by yourself by defining a private function:

def Subregion(x,y,w,h):
    return Region(x,y,w,h)

Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :

Maybe it's a better idea to simply replace all Subregion with Region, so that you can have region icons in the IDE.

Changed in sikuli:
status: New → Won't Fix
Revision history for this message
RaiMan (raimund-hocke) wrote :

Fully agreed.

I just was on the way to "recomment" my comment as "not really sensible" (not to say talking rubbish). ok, happened.

Revision history for this message
chimanfu (jfu) wrote :

I got the attached error when I run my script in 0.10, which is perfectly fine if running in 0.099.

I'm using this

"C:\Program Files\Sikuli.10\Sikuli-IDE.bat" MainAppTestSuite1_new.skl > MainAppTestSuite1_new.log

I also try to run it inside the IDE and double click on my MainAppTestSuite1_new.skl, they will just hang there and I don't know which line is causing problem.

Revision history for this message
RaiMan (raimund-hocke) wrote :

the log is not really readable. just paste it here completely as text.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.