Psychopy encountered an unhandled Internal Error again

Hii
I have this experiment which my teacher programmed all of it. He sent it to me to see if the experiment works on my computer. When I checked to see if it worked, an internal error appeared. When I reported the problem, my teacher told me that here on the forum someone could help me with the error!

I also tried to see if anyone here had encountered the same problem, and I saw that an internal error had also been reported, but I don’t think it’s been fully resolved and I don’t think it’s completely the same as my error! I also want to make it clear that I don’t really know anything about programming, but if you can help me with something I’ll try my best to solve it and if I can’t, I’ll talk to my teacher and show him what I’ve got. Thanks in advance for any help!

In order to start the experiment, my teacher asked me to click on Run so that the little ball would go to the right and then click on Play on the Desktop. Then the error appears!

OS: Win 11
My PsychoPy version 2024.2.4 modern

Internal Error:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 1388, in runFile
if self.sendToRunner(event):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 1330, in sendToRunner
ok = self.fileSave(self.filename)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 814, in fileSave
filename = self.exp.saveToXML(filename)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment_experiment.py”, line 523, in saveToXML
with codecs.open(str(filename), ‘wb’, encoding=‘utf-8-sig’) as f:
File “C:\Program Files\PsychoPy\lib\codecs.py”, line 906, in open
file = builtins.open(filename, mode, buffering)
PermissionError: [Errno 13] Permission denied: ‘C:\Users\anacl\AppData\Local\Temp\53b3262a-cfab-4009-8d70-e2e6898ebe80_Tarefa_estimulos.zip.e80\Tarefa_estimulos\atencao_tarefa_treino.psyexp’

Hello @AnaClara

Are you working within a zipped file?

Best wishes Jens

Hi Jens

Yes, they are zipped.

I just tried running the experiment after extracting the file and it worked!

Thank you!

Hi again

So… I’ve found another situation now.

This experiment has two parts, the first is the training experiment and the second is the actual experiment. I managed to get the training experiment to run smoothly, but not the actual experiment.
When I press Play, the button is yellow and not green and when I click it, this syntax appears.
And I’m opening the file without it being in zip.

The Syntax

9.7751 EXP Imported conditions_file.xlsx as conditions, 240 conditions, 7 params
9.8047 EXP Imported conditions_file.xlsx as conditions, 240 conditions, 7 params
9.8048 WARNING duplicate variable names: trialtype, Load, Stimulus, interval, Delay, Numbers, Response_correct
9.8048 WARNING Parameters not known to this version of PsychoPy have come from your experiment file: plCompanionCameraCalibration. This experiment may not run correctly in the current version.
9.8381 INFO Loaded monitor calibration from [‘2025_02_11 17:42’]
9.8834 EXP Imported conditions_file.xlsx as conditions, 240 conditions, 7 params
9.9141 EXP Imported conditions_file.xlsx as conditions, 240 conditions, 7 params
9.9142 WARNING duplicate variable names: trialtype, Load, Stimulus, interval, Delay, Numbers, Response_correct
9.9144 WARNING Parameters not known to this version of PsychoPy have come from your experiment file: plCompanionCameraCalibration. This experiment may not run correctly in the current version.
9.9231 INFO Loaded monitor calibration from [‘2025_02_11 17:42’]
10.0065 EXP Imported conditions_file.xlsx as conditions, 240 conditions, 7 params
10.0359 EXP Imported conditions_file.xlsx as conditions, 240 conditions, 7 params
10.0360 WARNING duplicate variable names: trialtype, Load, Stimulus, interval, Delay, Numbers, Response_correct
10.0361 WARNING Parameters not known to this version of PsychoPy have come from your experiment file: plCompanionCameraCalibration. This experiment may not run correctly in the current version.
Generating PsychoPy script…

Running: C:\Users\anacl\Documents\Neuropsicologia Aplicada 2ºano\Dissertação\Tarefa_estimulos\Tarefa_estimulos\atencao_tarefa_lastrun.py

File “C:\Users\anacl\Documents\Neuropsicologia Aplicada 2ºano\Dissertação\Tarefa_estimulos\Tarefa_estimulos\atencao_tarefa_lastrun.py”, line 1009
if tThisFlipGlobal > text.tStartRefresh + $Delay-frameTolerance:
^
SyntaxError: invalid syntax
################ Experiment ended with exit code 1 [pid:25540] #################