I have the same problem. This might be timeout error because the MP servers are overloaded. I don’t know if this relates to some changes in MP interface recently. Any MP developers can confirm this?
Do you have Materials Project API key? If not please register by your email on website Materials Project :: Developer Tools. If you have, please edit MPRester(api_key="what you have")