Error 'Dynamic code seems intended but updating is "constant":'

We have been running the same auditory detection task on the same laptop and same version of PsychoPy for a few years (using v2020.2.8), however it randomly started to crash (possibly after a Windows update). The only error code we get (other than the Alert 3115) is the below.

Note: Dynamic code seems intended but updating is “constant”:
“$BEGIN_TEST_TXT”, in Routine beginTest (text_10: Text)
“$PROBE_TXT”, in Routine decisionSpace (decisionTextProbe: Text)
“$CONTINUE_TXT”, in Routine instructions_9 (pressSpace_4: Text)
“$INSTRUCT_TXT3”, in Routine instructions_5 (text_3: Text)
“$WELCOME_TXT”, in Routine welcome (welcomeText: Text)
“$ISI_TXT”, in Routine practice_ISI (ISIVisualStimulus_3: Text)
“$CONTINUE_TXT”, in Routine instructions (pressSpace: Text)
“$PROBE_TXT”, in Routine practice_decisionSpace (decisionTextProbe_2: Text)
“$ISI_TXT”, in Routine ISI (ISIVisualStimulus: Text)
“$CONTINUE_BULB1_TXT”, in Routine instructions_5 (pressSpace_3: Text)
"$INSTRUCT_TXT1
", in Routine instructions (instructionsText: Text)
"$PRACTICE_COMPLETE_TXT
", in Routine practiceComplete (text_7: Text)
“$INSTRUCT_TXT4”, in Routine instructions_9 (text_4: Text)

We tried running the task on new versions of PsychoPy (v2022.2.2 and v2023.2.3) and more errors pop up (mostly because the task was written in v2020.2.8). I have tried the task on a different laptop (MacBook) and can get it to run on version v2022.2.2, so not sure it does run on the Windows one.

I tried searching the forum for posts with similar errors but they seem to be specific to each task. So any help would be much appreciated!

The common cause of this error is that somewhere in a Builder component (image, text, etc.) you are specifying a variable, but the setting for the component is “constant”. Have you checked that whereever each of these things ($BEGIN_TEST_TXT, $PROBE_TXT, etc.) is defined, they are set to update dynamically (probably either every frame or every repeat, depending on your task?).

1 Like