Re: [Biopython] BioPython URLError

Iddo Friedberg <[email protected]> Wed, 15 Nov 2023 15:34:05 -0600
Newsgroups gmane.comp.python.bio.general
Message-ID <CABm4-MQzCWBVacqkVE_LMPjLX+FQWUEk1J5WTBP7yTTM_4tLHA@mail.gmail.com>
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:

https://stackoverflow.com/questions/51390968/python-ssl-certificate-verify-error

For general troubleshooting of a possible certificate error, it is possibly
best to Google the error, since these things can be platform / OS specific:

https://www.google.com/search?q=certificate+verify+failed%3A+self+signed+certificate+in+certificate+chain

On Wed, Nov 15, 2023 at 3:26 PM Iddo Friedberg <[email protected]> wrote:

> Looks like a glitch, since I couldn't duplicate it (I did receive 100 IDs
> in "record").
>
> Is it working now, Jeffrey?
>
> On Wed, Nov 15, 2023 at 9:40 AM Jeffrey Posey <[email protected]> wrote:
>
>> 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?
>>
>> from Bio import Entrez
>> Entrez.email = " [email protected]".
>> handle = Entrez.esearch(db ="protein", retmax = 100, term=" COVID-19
>> surface glycoprotein")
>> record = Entrez.read(handle)
>>
>> URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)>
>>
>> _______________________________________________
>> Biopython mailing list  -  [email protected]
>> https://mailman.open-bio.org/mailman/listinfo/biopython
>>
>
>
> --
> Iddo Friedberg
>
> ++++++++++[>+++>++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>>>++++.>
> ++++++..----.<<<<++++++++++++++++++++++++++++.-----------..>>>+.-----.
> .>-.<<<<--.>>>++.>+++.<+++.----.-.<++++++++++++++++++.>+.>.<++.<<<+.>>
> >>----.<--.>++++++.<<<<------------------------------------.
>


-- 
Iddo Friedberg

++++++++++[>+++>++++++>++++++++>++++++++++>+++++++++++<<<<<-]>>>>++++.>
++++++..----.<<<<++++++++++++++++++++++++++++.-----------..>>>+.-----.
.>-.<<<<--.>>>++.>+++.<+++.----.-.<++++++++++++++++++.>+.>.<++.<<<+.>>
>>----.<--.>++++++.<<<<------------------------------------.

_______________________________________________
Biopython mailing list  -  [email protected]
https://mailman.open-bio.org/mailman/listinfo/biopython