[Biopython] Errors with retrieval from Entrez

David Martin (Staff) d.m.a.martin at dundee.ac.uk
Wed Nov 2 08:57:24 UTC 2016


I'm trying to retrieve a sequence from NCBI and am getting incomplete reads. Any hints or tips?

..d


handle= Entrez.efetch(db="nuccore", id=gi, retmode='text', rettype='gb')
seq= handle.read()

Traceback (most recent call last):

  File "<ipython-input-11-f879be0f80fe>", line 2, in <module>
    seq= handle.read()

  File "C:\Anaconda3\lib\http\client.py", line 440, in read
    return self._readall_chunked()

  File "C:\Anaconda3\lib\http\client.py", line 550, in _readall_chunked
    raise IncompleteRead(b''.join(value))

IncompleteRead: IncompleteRead(6841762 bytes read)

The University of Dundee is a registered Scottish Charity, No: SC015096
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/biopython/attachments/20161102/3dbc9ebe/attachment.html>


More information about the Biopython mailing list