Sorry, this is a result of socialism. Chavez undercut the middle class by giving or selling staple goods to the poor voting class, subsidized by the oil wealth. This undercut the middle class and anyone who sold things based on market supply and demand.
Source: I studied abroad there in 2001-2002 and I witnessed the overthrow of Chavez and learned a lot from the people in addition to studying the economics of the situation afterwards.