There is a 7 year time period after a bankruptcy when it is nearly impossible to get another mortgage. If you establish good credit during that time frame, you will again be eligible. Current mortgage guidelines make it more difficult for everyone to obtain a mortgage. You would need 20% down and a good credit score to qualify without the bankruptcy blemish on your credit report. Sorry for the bad news. Perhaps things will change since there are so many people in your situation, but right now those are the sad facts.
Fortunately there are many affordable rental properties available since there are too many homes for sale. We hope that you find a good rental property. A Realtor is a good source of information about rentals.