I had the same error. Triple checked the accounts.csv file. Turned out the "1"for live account was in the wrong column. Correcting this solved the issue.