| Reference | Downloads | Github

Experiment code not loading

Failed to load C:\Users\Public\Desktop\WebSurfRevised2016\MRI_WebSurf_Behavioral2016_UpdatedJune2016.psyexp. Please send the following to the PsychoPy user list Traceback (most recent call last): File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\app\builder\”, line 1473, in fileOpen self.exp.loadFromXML(filename) File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\app\builder\”, line 447, in loadFromXML self._doc.parse(filename) File “C:\Program Files (x86)\PsychoPy2\lib\xml\etree\”, line 647, in parse source = open(source, “rb”) IOError: [Errno 13] Permission denied: u’C:\Users\Public\Desktop\WebSurfRevised2016\MRI_WebSurf_Behavioral2016_UpdatedJune2016.psyexp’ Traceback (most recent call last): File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\app\builder\”, line 1907, in runFile f =, ‘w’, ‘utf-8’) File “C:\Program Files (x86)\PsychoPy2\lib\”, line 896, in open file =, mode, buffering) IOError: [Errno 13] Permission denied: u’C:\Users\Public\Desktop\WebSurfRevised2016\’

The error given is a permissions error, meaning that you’re not allowed to write to that folder (do some googling for more general info about file permissions).

It looks like your experiment is in a public folder. Can you run it in a folder belonging to you (anywhere under C:\Users\yourusername)?