Error while trying to save changes to experiment

OS (e.g. Win11):
PsychoPy version (e.g. 1.84.x):

Hi all,

Whenever I make any changes to my experiment (e.g., even just changing the text and trying to save this change), PsychoPy is saying there is an “unhandled internal error”. Below is the error message:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 731, in fileSave
filename = self.exp.saveToXML(filename)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment_experiment.py”, line 339, in saveToXML
with codecs.open(filename, ‘wb’, encoding=‘utf-8-sig’) as f:
File “C:\Program Files\PsychoPy\lib\codecs.py”, line 897, in open
file = builtins.open(filename, mode, buffering)
PermissionError: [Errno 13] Permission denied: ‘C:\Users\61449\AppData\Local\Temp\Temp1_cheerleader_exp.zip\cheerleader_exp.psyexp’

This issue is only happening for the current experiment. There are no issues in saving chances to any other experiment.
There is no given prompt or way mentioned to troubleshoot this except to “contact the developers”.

Is there a way to fix this? Any help would be much appreciated!

Many thanks,
Ishi

Hello

it looks as if you were saving the experiment to a temp folder in zip-file. Try a different file name for saving the experiment.

Best wishes Jens

1 Like

Hi Jens,

Thank you so much for your reply!

Following your advice, when I saved the file to a different folder, the issue was resolved.

Many thanks,
Ishi