The warnings from Gov. Andrew Cuomo began in March.

As the budget negotiations were beginning in earnest, Cuomo on March 4 began to publicly doubt the chances of marijuana legalization.

“I think they make a big mistake if they don’t do marijuana in the budget because I think they’re going to be in trouble if they don’t get marijuana done by the budget, I think it’s a mistake to leave it for afterwards, I’ve said it,” Cuomo said at the time.

Ultimately, it wasn’t included in the budget, where Cuomo had wanted to use revenue to bolster capital spending for mass transit in New York City.

And it won’t be included at the end of the legislative session, either.

Cuomo warned publicly a half dozen or so different times about the level of support for the bill, primarily in the state Senate.

“I said if we don’t do it in the budget it’s going to be much harder after the budget,” Cuomo said on June 12 at a news conference. “We had that conversation. They said we don’t want to do it in the budget. We don’t want to do policy in the budget. we want to do it after the budget. I said I think that’s a mistake.”

Marijuana legalization turned into something of an undead bill for much of the session, with the measure being declared too difficult to get done, only to be resurrected as talks resumed.

So, what happened?

Sen. Liz Krueger diagnosed it: It was a complicated bill that was short of both time and votes.

Lawmakers were doing what, so far, no state has fully achieved: The approval and implementation of a regulatory and taxation system for retail cannabis. The measure’s moving parts included questions over where the money should be spent — communities effected by the war on drugs, law enforcement, drug use education, drug use study — and drew in complex discussions surrounding criminal justice.

Any single one of those bills could give lawmakers pause, let alone in a large omnibus bill introducing and regulating a new product in New York that, on the federal level, isn’t legal.

Then there was the question of the suburban Democrats, who already this week had a tough vote in front of them with a measure allowing undocumented immigrants to apply for driver’s licenses. Those lawmakers, primarily from Long Island and the Hudson Valley, were were being put in an increasingly uncomfortable political position.

Pro-legalization advocates regard a fall back bill, a measure designed to decriminalize marijuana possession and expunge some arrest and conviction records, as not even half a loaf, and the bill is yet to gain full passage.

New York is often hailed as a progressive state. But there’s a history for the state over the last several decades baked into its political DNA when it comes to drug enforcement and drug laws.

That’s changed slowly in New York and at the state level as policy makers reconsider the expense. But for a state with a complicated and fraught history with drug enforcement this turned out not to be the year for marijuana legalization.