sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04064
[Question #165540]: getting error while use python language inside sikuli
New question #165540 on Sikuli:
https://answers.launchpad.net/sikuli/+question/165540
I am new to sikuli, while i am trying to use python language inside sikuli its not working ,please let me know what all things need to be import before using python.please find below my code
import os.path
import java.lang
import org.python
reg=Region(281,234,301,302)
img=capture(reg)
if exists(img):
print "exists"
[error] Stopped [error] An error occurs at line 8 [error] Error message: SyntaxError: ("mismatched input 'print' expecting INDENT", ('C:\\DOCUME~1\\393896\\LOCALS~1\\Temp\\sikuli-tmp4781017043883738455.py', 8, 0, 'print img, "finally came up"\n'))
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.