Err 13 permission denied when trying to save screenshot

Asked by diego on 2019-12-08

I switched to Mac OS Sierra from El Capitan and this error appeared:

IOError ( [Errno 13] Permission denied: '/Users/macuser/Dropbox/sikuli/images/instructions.png' )

Here is the relevant code:

reg = Region(Region(278,216,390,119))
img = capture(reg)
shutil.move(img, "/Users/macuser/Dropbox/sikuli/images/prompt.png")

I chmod'd 777 the images folder, but still nothing.

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2019-12-09
Last query:
2019-12-09
Last reply:
2019-12-09
Best RaiMan (raimund-hocke) said : #1

Has surely nothing to do with SikuliX.

As mentioned:
At this moment, the file system does not have a valid permission to write to the dropbox folder.

So revise your system/dropbox setup.

diego (adrian-veidt) said : #2

Thanks RaiMan, that solved my question.

diego (adrian-veidt) said : #3

It was my bad. Wrong path after changing system. Dropbox works by default with chmoding anything

Thanks!