sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37448
Re: [Question #289543]: Combine Images Side by Side
Question #289543 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/289543
Status: Answered => Open
Jeff_Vallis is still having a problem:
Thanks for the Reply:
First of all ImageMagick :- I hvae installed with MacPorts
Changed my code as suggested and I think that while I can execute the command from a terminal window that from Sikuli it cannot find the command
Code Changed ( and added additaional ls command to check ) to :-
cmd = 'ls "%s" "%s" "%s" "%s" "%s" "%s"' % (TSCa, TSCb, TSCc, TSCd, TSCe, TSCf)
output = run(cmd)
print "*** the command"
print cmd
print "*** the result"
print output
cmd = 'convert +append "%s" "%s" "%s" "%s" "%s" "%s"' % (TSCa, TSCb, TSCc, TSCd, TSCe, TSCf)
output = run(cmd)
print "*** the command"
print cmd
print "*** the result"
print output
Result :-
ls worked but convert not found
Command
convert +append /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaulta.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultb.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultc.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultd.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaulte.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultf.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultx.png
Command
convert -append /Users/Jeff/Desktop/SikuliScripts/Images/Users/Summary_Test.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultx.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/Summary_Test.png
[info] runcmd: ls /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaulta.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultb.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultc.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultd.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01
AllUrFaulte.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultf.png
*** the command
ls "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaulta.png" "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultb.png" "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultc.png" "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultd.png" "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaulte.png" "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultf.png"
*** the result
0
/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaulta.png
/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultb.png
/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultc.png
/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultd.png
/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaulte.png
/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultf.png
[info] runcmd: convert +append
/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaulta.png
/Users/Jeff/Deskt
op/SikuliScripts/Images/Users/01AllUrFaultb.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultc.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultd.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaulte.png /Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultf.png
[error] RunTimeIDE: fatal error: java.io.IOException: Cannot run program "convert": error=2, No such file or directory
*** the command
convert +append "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaulta.png" "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultb.png" "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultc.png" "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultd.png" "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaulte.png" "/Users/Jeff/Desktop/SikuliScripts/Images/Users/01AllUrFaultf.png"
*** the result
9999
*****error*****
java.io.IOException: Cannot run program "convert": error=2, No such file or directory*****error*****
Conclusion - Terminal can find convert : Sikuli / Java cannot find it
my workaround is :-
output command to file
Terminal
execute Sikuli Script
execute command file
which works ok but not as neat as it should be
the real script
Script loops through 50 creating images and and commands
Terminal
execute Sikuli Script
execute command file
I realise this is not a Sikuli Problem and will mark as solved if no
further help available
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.