Venezuelan opposition candidates, campaigning on a shoestring and sometimes from behind bars, sought a chance Sunday to take part in what may be their best chance in years to defeat the country's socialist government.

Turnout for the primary was expected to be low. For one thing, only 42 of the country's 167 legislative seats are in play. The other spots have already been reserved by opposition coalition leaders. For another, the date of the general election has not yet been set, though the administration of President Nicolas Maduro has pledged to hold the contest in late November or early December.

The primary also has received little coverage in much of the pro-government press and the coalition said it's so short of funds that it asked candidates to put up 150,000 bolivars, about $500 at the black market rate, to finance their campaigns.

The coalition made up of 29 often squabbling parties holds about a third of the South American country's legislature. Opposition parties have not captured a legislative majority since Maduro's mentor, the late Hugo Chavez, won the presidency 16 years ago. They have decisively lost every recent national election.

But the coalition how benefits from widespread discontent with Maduro, driven by mounting shortages, the world's highest inflation and rampant crime. If the election were held today, polls indicate that the opposition would win by a landslide.

Maduro's presidency isn't up for a vote, though. His term ends in 2019.

Coalition leaders say they are capitalizing on a new wave of discontented Venezuelans by catering to younger voters who took to the streets last year for weeks of sometimes violent protests against the administration. A third of the candidates in Sunday's primaries are younger than 40.

Some candidates in Sunday's primaries are still jailed on charges related to last year's protests, including Daniel Ceballos, the former mayor of the restive city of San Cristobal. In a quirk of Venezuelan law, a win in the general election could spring the 31-year-old politician from jail because legislators receive immunity from prosecution during their terms.

Maduro, whose own popularity has hovered in the 20 percent range for months, has repeatedly boasted that his United Socialist Party of Venezuela will clobber the opposition at the polls.

The governing party will hold its primary elections next month, with twice as many seats up for grabs.

___

Follow Hannah Dreier on Twitter: https://twitter.com/hannahdreier