6
$\begingroup$

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))
meas_fitter.plot_calibration(ax)

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!

$\endgroup$

1 Answer 1

1
$\begingroup$

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
$\endgroup$
4
  • $\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 that you have read and understand our privacy policy and code of conduct.

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