← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #250984]: How convert org.sikuli.script.Pattern in string?

 

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

RaiMan proposed the following answer:
ok, you get an error in the function create_html_error, that you are
calling at <--- DEF WHERE I get error

the error should be something like:
[error] TypeError ( cannot concatenate 'str' and 'org.python.modules.sre.MatchObject' objects )

this is because this is not valid:
           print "image parsed: " + image_parse

must be something like
           print "image parsed: " + image_parse.group(1)

image_parse is a match object, that even does not show something worth
using str(image_parse)

see Python docs

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