Installation of MPInterfaces

I am installing the MPI interfaces package from here

But after trying to run the code I get error code saying give API key from materials project.

I have given the API key from both the next-gen materials project and the legacy materials project, but neither seems to work in the mpint_config.yaml file as instructed.

Can anyone help me out?

Thanks in advance.

Hey @Kalpak, we don’t maintain MPInterfaces, but it looks like it uses the legacy API. In your .bashrc or .zshrc, try adding these lines for relevant environment variables:

export PMG_MAPI_KEY="<your api key here>"
export MP_API_KEY=$PMG_MAPI_KEY
1 Like