Hi,
I have a similar problem. I tried to used the provided code on Materials Project webpage:
from mp_api.client import MPRester
with MPRester(api_key="<enter your api key>") as mpr:
elasticity_doc = mpr.elasticity.search(material_ids=["mp-1265"])
but got the following error:
TypeError: search() got an unexpected keyword argument 'material_ids'
(I did change “enter your api key” to my own api key. Just don’t want to show my key here.)