Dear All
Now I am using MPInterface packages to generate wulff construction, in this process, the MPInterface need to call Pymatgen to generate structure such as
structure = get_struct_from_mp(‘PbS’, MAPI_KEY="*******")

but when run this statement, there is an error like,

Do you have any idea about this issue?

Hi CZhao,

Despite the name MPInterfaces is not a Materials Project supported package. I’d recommend using the MPRester calls from pymatgen. You should be able to do something like

from pymatgen import MPRester

with MPRester(YOUR_API_KEY) as mpr:
    structures = mpr.get_structures("PbS")

For additional help with the MPInterfaces package, please contact the developers of that package.