← Back to team overview

sikuli-driver team mailing list archive

[Question #655742]: Traceback --- error seen when trying to capture and store image using shutil

 

New question #655742 on Sikuli:
https://answers.launchpad.net/sikuli/+question/655742

Hi  

I have used the below code to capture and store an Image

img = Screen(0).capture(27,170,963,159)
import shutil
shutil.move(img,"C:\\Sikuli\\test1.png")
import os.path
shutil.move(img,os.path.join(getBundlePath()),"test.png")


And this is the error i get

TypeError ( coercing to Unicode: need string, org.sikuli.script.ScreenImage type found )
[error] --- Traceback --- error source first line: module ( function ) statement 293: shutil ( move ) File "C:\Sikuli\sikulix.jar\Lib\shutil.py", line 293, in move


Please tell me what to do to remove this erroe



-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.