Hello all,
I’m attempting to setup a script to import some data from MP. I just have the following:
from mp_api import MPRester
myAPI = “myapistringhere”
with MPRester(myAPI) as mpr:
and then I just ran a simple command to read data in regarding a single material ID and print out a couple of details. The strange thing is that the data is successfully read in and the properties outputted, but before then I receive an error:
C:\Users\mynamehere\AppData\Local\Programs\Python\Python39\lib\site-packages\mp_api\client.py:138: builtins.UserWarning: Problem loading MPContribs client: [<twisted.python.failure.Failure OpenSSL.SSL.Error: [(‘STORE routines’, ‘’, ‘unregistered scheme’), (‘system library’, ‘’, ‘’), (‘STORE routines’, ‘’, ‘unregistered scheme’), (‘STORE routines’, ‘’, ‘unsupported’), (‘STORE routines’, ‘’, ‘unregistered scheme’), (‘system library’, ‘’, ‘’), (‘STORE routines’, ‘’, ‘unregistered scheme’), (‘STORE routines’, ‘’, ‘unsupported’), (‘STORE routines’, ‘’, ‘unregistered scheme’), (‘system library’, ‘’, ‘’), (‘STORE routines’, ‘’, ‘unregistered scheme’), (‘STORE routines’, ‘’, ‘unsupported’), (‘SSL routines’, ‘’, ‘certificate verify failed’)]>]
I saw some suggestions to set SSL_CERT_FILE = $(python -m certifi) and did that to no avail. Does anyone know how to fix this error or whether I should just ignore it?