Error in Nested Loops

Hi all,

I had an experiment module that worked perfectly in previous versions, where there was a simple nested loop where random sets of images were called through randomizing the nested blocks. But after the update this is the fault that is occurring:

Also, this is the error which is coming when running the module:

File “D:\Psychopy\Psychopy new demoset\4_Face_No_Go_lastrun.py”, line 455
trialList=data.importConditions(EmotionFile, selection=rowStart:rowEnd),
^
SyntaxError: invalid syntax

Can anyone tell me what the issue is? Is there a problem with the version or something else has happened?

Thanks in advance!