Extremely weird failure to import conditions

OS (e.g. Win10): WIN 10
PsychoPy version (e.g. 1.84.x): 2021.2.3
Standard Standalone? (y/n): y

Hi all,

My experiment has several loops. All of them work fine, except the final one (testLoop). it looks like the conditions fail to be read for this loop? Interestingly, if I set the number of repetitions of the previous loop (trial_4) to 0, the last loop (testLoop) seems to work. This is the first time I encounter such a weird problem, so any help would be appreciated. This is the error message I get in the standard output:

  File "G:\Shared drives\lab\Creativity_memory_mouse_tracking\exp1\test8_anton_lastrun.py", line 1179, in <module>
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\textbox2\textbox2.py", line 1071, in setText
    setAttribute(self, 'text', text, log)
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\tools\attributetools.py", line 141, in setAttribute
    setattr(self, attrib, value)
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\textbox2\textbox2.py", line 376, in text
    text = text.replace('<i>', codes['ITAL_START'])
AttributeError: 'NoneType' object has no attribute 'replace'

anton_test.xlsx (10.4 KB)
coolDown.xlsx (8.5 KB)
study2.xlsx (8.8 KB)
testTraining2.xlsx (8.8 KB)
warmUp.xlsx (8.5 KB)

test8_anton.psyexp (64.1 KB)
test8_anton_lastrun.py (88.0 KB)

Attached are the experiment and condition files.

Hi There,

Which of the excel sheets causes the error?


it’s anton_test.xlsx, but if I disable the preceding loop, everything works just fine