OSError: [Errno 13] occurs in the inline_script using Xpyriment & Pygaze
I'm faced with weird problem of OSerror when I run the eye tracking experiment by the inline_script.
The error is as below.
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/inline_script.py", line 102, in run self.experiment.python_workspace._exec(self.crun) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/python_workspace.py", line 161, in _exec exec(bytecode, self._globals) File "<string>", line 123, in <module> File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/expyriment/control/_experiment_control.py", line 164, in start experiment._data = DataFile(additional_suffix=experiment.filename_suffix) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/expyriment/io/_files.py", line 346, in __init__ OutputFile.__init__(self, suffix, directory, time_stamp=time_stamp) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/expyriment/io/_files.py", line 170, in __init__ os.mkdir(directory) OSError: [Errno 13] Permission denied: 'data'
I made the script by Xpyriment and Pygaze, and copied it into the inline_script of Opensesame (3.1.6) on MacPC.
On the other hand, it runs partway of program on another version of Opensesame (3.0.7). In this case, the experiment runs correctly by the end of first block. From the second block of experiment, the procedure becomes wrong (e.g., the fixation mark becomes a black box, the stimuli are presented in the blank screen which doesn't have any stimuli originally...)
I have attached my program. Note that some codes are omitted for the clear understanding.
Thanks in advance!