Name Error: __is not defined

OS (e.g. Win10): Windows 10
PsychoPy version (e.g. 1.84.x): 2022.2.1
Standard Standalone? (y/n) If not then what?: yes
What are you trying to achieve?:

I’m working on experiment where participants view 2 videos and then have to indicate whether or not the videos followed the same rule or not. I have included the videos using the Movie component, and selected the appropriate video file, but when I tried to run the experiment, it would cut out and say the following:

Running: C:\Users\neuro\Documents\041.ElizabethSROP\Stimuli\

pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
Traceback (most recent call last):
Hello from the pygame community. Contribute - pygame wiki
5.7250 WARNING User requested fullscreen with size [1280 720], but screen is actually [1280, 800]. Using actual size
File “C:\Users\neuro\Documents\041.ElizabethSROP\Stimuli\”, line 1051, in
NameError: name ‘ABA13’ is not defined
################# Experiment ended with exit code 1 [pid:7444] #################

These are pictures of the routine where I’m having the issue, and the video that it says is not defined:

I initially had this experiment on another device and it worked fine there, but it won’t work on the computer I’m using now and cuts off before the first video stimulus with this message. I’ve looked at other similar topics but I’m still not sure how to solve this issue so any help would be appreciated, thank you!

Hi Liz, could you upload your materials? It’s hard to tell from your information, what is going wrong.

Hello! This is the experiment file:

041SROP_vABA.psyexp (221.3 KB)

I’m not sure how to upload the folder with the stimuli as well, but I put them on Github.

For me it works fine and I have not changed anything from the github download except putting the movies in the “ABAstim” folder that the experiment implies.

By the way, you could make your life a lot easier by using loops instead of having twenty very similar routines :slight_smile:

Like this: FSU-Cloud (only the first ten trials)

Ah ok, thank you! The last change I made was to change the backend to “ffpyplayer” instead of “moviepy” and it seems to be working okay now so I think that may have been the issue.

Thank you so much :sob: I wanted to make a loop but I wasn’t sure how to because I need to pull different video files for each trial. This is a big help, much appreciated!