This is not a bug. You have to use a region object with a with() - seems you are using an image.
see docs: http://sikuli.org/docx/region.html#grouping-method-calls-with- region e.g. reg = find("some-image.png").left(1).right(400).below(500) with (reg): # your code in this case a region is used, that contains some-image.png in it's upper left corner and is of size 400x500. ** Changed in: sikuli Status: New => Invalid -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/743271 Title: 'str' object has no attribute '__exit__' Status in Sikuli: Invalid Bug description: I am trying to write the simplest code: with( ): click( ) % the screenshots cannot be pasted here But got the error: [error] Stopped [error] An error occurs at line 0 [error] Error message: Traceback (most recent call last): File "C:\Users\Mingbo\AppData\Local\Temp\sikuli-tmp5274016666021146748.py", line 0, in AttributeError: 'str' object has no attribute '__exit__' I am using Sikuli X-1.0rc2 on Windows Vista 32-bit. I guess there is some library missing? _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp