This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error in Retrieving Sequence from NCBI from Biopython

Does anyone here ever experiencing error when retrieving sequence from NCBI from Biopython? I use this script, but got error

from Bio import Entrez
from Bio import SeqIO
Entrez.email = "danangcrysnanto@gmail.com"
handle = Entrez.efetch(db='nucleotide',id=["FJ817486, JX069768, JX469983"],retype='fasta')

records=list(SeqIO.read(handle,'fasta'))

print records

I got this error:

urllib2.URLError: <urlopen error [Errno 11004] getaddrinfo failed>

What I should do to fix that?

Thanks

sequence

It could be a proxy issue. check the http_proxy and https_proxy settings.

0 answers

No answers yet.

Log in to answer this question.