How exclude a location after chosed from random.choice(locations)

Hi, I am trying to make the randomization of the imagens in the same routine, but I tried a lot of stuffs (I was looking here Randomizing position of stim - #8 by wakecarter), but when I insert “set every repeat” on the imagem location, I can’t run the experiment.
SMTS.psyexp (200.3 KB)