There's no shortage of pilots, just like there's never a shortage of any type of employee--companies just don't want to pay enough.
For pilots, airlines refuse to hire people with zero experience and pay for them to go through pilot school: they expect people to pay for all that on their own: get their licenses and enough hours of flying time to be eligible for working for the big airlines. Guess what? That costs a lot of money and not many people want to do it any more. If the airlines really want to hire more pilots, then they need to invest in their training, all the way from zero experience. Of course, they don't want to do that, so they whine and complain.