AttributeError: 'str' object has no attribute 'setColor'

OS: MacOS Monterey
PsychoPy version: v2022.1.3

I’m building a basic Stroop task and have the conditions file properly linked with a column of colors defined. I reference the color column in the ‘Word’ object, which returns the following error upon running:

AttributeError: ‘str’ object has no attribute ‘setColor’

Notably, this error still appears even if I change ‘$Color’ to ‘Red’ or some other non-variable. Other solutions I’ve found online were no good. Files attached.
conditions.xlsx (9.0 KB)
StroopPractice.psyexp (10.0 KB)

Full error:

File “/Users/nathaniel/Documents/StroopPractice_lastrun.py”, line 120, in
Word.setColor(Color, colorSpace=‘rgb’)
AttributeError: ‘str’ object has no attribute ‘setColor’
################ Experiment ended with exit code 1 [pid:89016] #################

Try renaming the Word object to something else, as there’s a warning on it having the same name as the string column $Word in your conditions.xlsx file. No errors when I changed the text object to wordle.

This worked- thank you very much!