Foreign ministers from Latin America and Canada had gathered in Peru to discuss the crisis in Venezuela, but the announcement of snap elections, from which most opposition has been banned, was a surprise.