IOE permission denied

Asked by Nini Liao

Hi. I'm new to sikuli; been using it for several days.

Currently I'm trying to save some text to a text file, but with no success. This is the code im using.

docker exec node-chrome-sikuli-one java -jar /root/SikuliX/sikuli.jar -r /dev/shm/plushie_frenzy.sikuli

[error] script [ plushie_frenzy ] stopped with error in line 12
[error] IOError ( (13, 'Permission denied', '/dem/shm/logs/playlogs/pgs_slot_plushie_frenzy_20200326.txt') )
[error] --- Traceback --- error source first
line: module ( function ) statement
12: main ( <modult> ) playDiary = open(diaryPlay + "/pgs_slot_plushie_frenzy_" + today + ".txt", 'a')
[error] --- Traceback --- end ---------------------------------

Could anyone shed some light for me? I'm quite new.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

The folder /dem/shm/logs/playlogs/ does not exist or does not have write permission for you

Revision history for this message
Nini Liao (nnl.27) said :
#2

Thank you for your replying. :)

I fix my mistake about the path. '/dev/shm/logs/playlogs/, and then , no permission problem.

As for now , i got a now problem.
I run Sikuli on docker container, ( I pull uwaylu/ubuntu-sikulix2-base)

This problem is : no wmctrl and no xdotool in container

$ docker exec node-chrome-sikuli-one java -jar /root/SikuliX/sikulix.jar -r /dev/shm/plushie_frenzy.sikuli
[error] App: command wmctrl is not executable, the App features will not work
[error] App: command xdotool is not executable, the App features will not work
[error] findWindow:
[error] error in command [wmctrl, -lpGx]
[error] switchApp: feature wmctrl: not available or not working
[error] switchApp: feature wmctrl: not available or not working
[error] script [ plushie_frenzy ] stopped with error in line 45
[error] FindFailed ( imgBetSureBtn.png: (130x33) in R[0,0 1920x1080]@S(0) )
[error] --- Traceback --- error source first
line: module ( function ) statement
45: main ( <module> ) click(imgBetSureBtn)
[error] --- Traceback --- end --------------

Revision history for this message
RaiMan (raimund-hocke) said :
#3

- wmctrl and xdotool are missing in the container (I cannot help you with docker stuff)

- [error] FindFailed ( imgBetSureBtn.png: (130x33) in R[0,0 1920x1080]@S(0) )
the image is not found on the screen

Can you help with this problem?

Provide an answer of your own, or ask Nini Liao for more information if necessary.

To post a message you must log in.