If you are unable to get your spouses social security number you will have to file via mail. You will print and mail in your tax return with a letter explaining why you do not have it. Make sure to include as much information about your spouse that you have, such as their name and date of birth. Please see the post below on how to print and mail your return.
https://ttlc.intuit.com/replies/3401713