UnboundLocalError: local variable 'watching' referenced before assignment

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10):
PsychoPy version (e.g. 2026.1.3):
Standard Standalone Installation? (y/n) yes
Do you want it to also run online? (y/n) no
What are you trying to achieve?: to run video component.

**
Hello guys, I get this alert, and I do not how to fix it. Could you help? You can find my excel sheet and my program here:**

The system does not run video component. Therefore, I cannot see videos and the sounds. Sounds are synchronized with the videos.

Do you know how can I solve it?

Hello @Dzhaner_Emilov_Stefa

you need to initialize the variable “watching” before you use it, e.g. in a Begin experiment tab.

Best wishes Jens

Do you have a Component in your experiment called watching? If so what kind of Component is it?