Socialism works great until you run out of other people's money. Whether it's because the price of oil dropped, your most productive tax payers moved out, or your currency hyperinflates until it's worthless: somehow it's never socialism's fault. Reality eventually does set in, though.
If your economic system can't efficiently feed people, more complex industries will be even harder. Not to mention building new industries.
The failures of their socialist experiment go far deeper than simply a non diversified industry. The drop in the petro industry showed immediately how fragile the massive spending schemes and nationalization was.
As Thomas Sowell said (paraphrasing), the problem with redistribution is that you can only take someone's money/property once, you can't take their ability to continually produce goods. So when that well dries up the cracks in the system become apparent.
The wikipedia article on the Venezuelan economy is a good read about the risks of centralized planned economies.