[1.1.1] shutil.move(pic,sfile) returns error (ScreenImage coercion to string)
This script works in SikuliX 1.1.0. I get a screenshot named
"OSX10.11.5 2016-08-01 15.11.10 Empty checkbox not found left of Reduce Transparency"
In 1.1.1 I get this error which seems to not like the parms in shutil.
script reads as below. Not sure what changed here???
#######
def snapit(msg):
bounds = getBounds()
pic = Screen(
print("snapshot taken, + msg")
msg = msg.rstrip("\n")
sfile = path + "OSX10.11.5 " + time.strftime(
shutil.
#######
[log] ( ⌘+⌥ ) TYPE "h"
[log] App.open [2990:System Preferences]
2016-08-01 15\:15\:01, Dragged System Preferences Window to top
[log] CLICK on L(1738,
2016-08-01 15\:15\:02, Clicked on Accessibility
2016-08-01 15\:15\:06, Empty checkbox not found left of Reduce Transparency
snapshot taken, + msg
[error] script [ mac10-11-onboard ] stopped with error in line 536
[error] TypeError ( coercing to Unicode: need string, org.sikuli.
[error] --- Traceback --- error source first
line: module ( function ) statement
293: shutil ( move ) File "/Users/
22: main ( snapit ) shutil.
172: main ( clickitdir ) snapit(msg)
318: main ( reducetrans ) rc = clickitdir(
[error] --- Traceback --- end --------------
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was originally filed as bug #1608693.
Can you help with this problem?
Provide an answer of your own, or ask Joe White for more information if necessary.