MPRester.query shows type error

TypeError Traceback (most recent call last)
Cell In[25], line 16
14 properties= [“structure”, “material_id”, “formula_pretty”, “energy_above_hull”]
15 print(properties)
—> 16 entries= mpr.query(criteria= criteria, properties= properties)
17 for e in entries:
18 print(e[‘pretty_formula’])

TypeError: ‘NoneType’ object is not callable

I have tried mongodb format for achieving perovskite formulas using mprester.
how to solve the problem? please help

Please consider using MP’s officially supported MPRester python client in the mp_api library. See Getting Started - Materials Project Documentation. For help with pymatgen’s python client, please post in the pymatgen forum. Thanks!

thanks a lot for your kind info