<div dir="ltr"><div>Running the code below prior to my initial code enabled functionality and subsequent outputs</div><div><br></div>import ssl<br><br>try:<br>    _create_unverified_https_context = ssl._create_unverified_context<br>except AttributeError:<br>    # Legacy Python that doesn't verify HTTPS certificates by default<br>    pass<br>else:<br>    # Handle target environment that doesn't support HTTPS verification<br>    ssl._create_default_https_context = _create_unverified_https_context<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 15, 2023 at 1:34 PM Iddo Friedberg <<a href="mailto:idoerg@gmail.com">idoerg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Also, in case the error is continuing: which OS are you using? If it's windows, there may be a certificate library issue. Look here for possible solutions:<br><br><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_questions_51390968_python-2Dssl-2Dcertificate-2Dverify-2Derror&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=wTh6pI_uB_2VwyV3g4NSuw&m=RjCVFCKpxMHA4Gbq1Jp3ehPwVaFiHEorWAE0KT7hfzkJU71suHG7wrsOYLF4JOia&s=IE610YRQ1oC4f-Uob7iRfafeKAinG0nTNnQCKh-QPIM&e=" target="_blank">https://stackoverflow.com/questions/51390968/python-ssl-certificate-verify-error</a><br><br></div>For general troubleshooting of a possible certificate error, it is possibly best to Google the error, since these things can be platform / OS specific:<br><br><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.google.com_search-3Fq-3Dcertificate-2Bverify-2Bfailed-253A-2Bself-2Bsigned-2Bcertificate-2Bin-2Bcertificate-2Bchain&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=wTh6pI_uB_2VwyV3g4NSuw&m=RjCVFCKpxMHA4Gbq1Jp3ehPwVaFiHEorWAE0KT7hfzkJU71suHG7wrsOYLF4JOia&s=5KgG3Jcy58deHFbPesBrK9hJwY7jflzHMgcGf7619kI&e=" target="_blank">https://www.google.com/search?q=certificate+verify+failed%3A+self+signed+certificate+in+certificate+chain</a> <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 15, 2023 at 3:26 PM Iddo Friedberg <<a href="mailto:idoerg@gmail.com" target="_blank">idoerg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Looks like a glitch, since I couldn't duplicate it (I did receive 100 IDs in "record"). <br></div><div><br></div><div>Is it working now, Jeffrey?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 15, 2023 at 9:40 AM Jeffrey Posey <<a href="mailto:jp7363@nyu.edu" target="_blank">jp7363@nyu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I've downloaded BioPython to my Jupyter notebook terminal, entered the code from BioPython notebook (below), and it results in a URLError. What might be the problem?<br><div><br></div><div>from Bio import Entrez <br>Entrez.email = " <a href="mailto:jp7363@nyu.edu" target="_blank">jp7363@nyu.edu</a>".<br>handle = Entrez.esearch(db ="protein", retmax = 100, term=" COVID-19 surface glycoprotein")<br>record = Entrez.read(handle)<br></div><div><br></div><div><pre style="box-sizing:border-box;overflow:auto;font-size:14px;padding:1px 0px;margin-top:0px;margin-bottom:0px;line-height:inherit;color:rgb(0,0,0);word-break:break-all;border:0px none;border-radius:0px;vertical-align:baseline"><span style="box-sizing:border-box;color:rgb(178,43,49);font-weight:bold">URLError</span>: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)></pre></div></div>
_______________________________________________<br>
Biopython mailing list  -  <a href="mailto:Biopython@biopython.org" target="_blank">Biopython@biopython.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.open-2Dbio.org_mailman_listinfo_biopython&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=wTh6pI_uB_2VwyV3g4NSuw&m=RjCVFCKpxMHA4Gbq1Jp3ehPwVaFiHEorWAE0KT7hfzkJU71suHG7wrsOYLF4JOia&s=01l05azZH_8GMaCtfxgdYxMXwdcwAyJWhewMfvdA1nU&e=" rel="noreferrer" target="_blank">https://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Iddo Friedberg</div><div><br>++++++++++[>+++>++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>>>++++.><br>++++++..----.<<<<++++++++++++++++++++++++++++.-----------..>>>+.-----.<br>.>-.<<<<--.>>>++.>+++.<+++.----.-.<++++++++++++++++++.>+.>.<++.<<<+.>><br>>>----.<--.>++++++.<<<<------------------------------------.<br></div></div></div>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Iddo Friedberg</div><div><br>++++++++++[>+++>++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>>>++++.><br>++++++..----.<<<<++++++++++++++++++++++++++++.-----------..>>>+.-----.<br>.>-.<<<<--.>>>++.>+++.<+++.----.-.<++++++++++++++++++.>+.>.<++.<<<+.>><br>>>----.<--.>++++++.<<<<------------------------------------.<br></div></div></div>
</blockquote></div>