UnboundLocalError: local variable ‘trialList’ referenced before assignment

Check your conditions file for spaces in the column names