I know several good, hardworking, responsible people who have had to file for bankruptcy for one reason or another. I know it's embarrassing, but it doesn't say anything about you as a person. Sh*t happens.
The biggest problem, really, is that it will ding your credit for a while. I'm on a credit forum, though, and a lot of people are able to start rebuilding credit fairly quickly and have a decent credit score before the bankruptcy is even off their credit report. You probably wouldn't get a great mortgage rate for a while, though. If you won't need to apply for credit for a while you might come through with relatively little pain.