I had a question earlier about the Numpy DeprecationWarning flooding issue. I just updated the Python in my regular jupyter notebook and have trouble running the following cell:

cal_job = execute(cal_circuits, 
                 backend = backend,
                 shots = 1024,
                  optimization_level = 0
***cal_results = cal_job.result()***
meas_fitter = CompleteMeasFitter(cal_results, state_labels)
fig, ax = plt.subplots(figsize=(10, 10))

My code worked fine before upgrading but now it shows the following error message (The line with the error is marked with***):

SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate 

On the IBMQ Experience page it shows my job has been successfully executed, but I cannot obtain any result from the notebook. What should I do? Thanks so much for the help!


1 Answer 1


If running on MacOS, did you try to Install Certificates? You can execute the following line in a terminal, replacing <version> with your Python version.

/Applications/Python\ <version>/Install\ Certificates.command
  • $\begingroup$ Thanks, should I do that in my terminal? $\endgroup$
    – ZR-
    Feb 6, 2021 at 16:33
  • $\begingroup$ Yeap. Answer updated to include that important detail. $\endgroup$
    – luciano
    Feb 6, 2021 at 16:35
  • $\begingroup$ That works, thanks so much! $\endgroup$
    – ZR-
    Feb 6, 2021 at 16:50
  • $\begingroup$ Am I supposed to type the above line directly into terminal on Mac? This gives me an error $\endgroup$
    – LOC
    May 18, 2021 at 4:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.