← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #124759]: Can you run Python and call Sikuli from there?

 

Question #124759 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/124759

RaiMan proposed the following answer:
a find() operation returns a match object.

Without any additional actions, only basic variable types like numbers
and strings are supported at the XML-RPC.

in this case the server tries to return a match object to the client,
but this cannot be mapped (called marshalling in this context) to the
return structures (read more:
http://docs.python.org/library/xmlrpclib.html#module-xmlrpclib)

So since you cannot do anything with a match object in Python, just use
str(find()) witch returns the string, that would be printed in Sikuli
when saying "print find()".

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.