[Biopython] [Entrez] bytes objects has no attribute 'read'

c.buhtz at posteo.jp c.buhtz at posteo.jp
Sat Dec 19 13:28:36 UTC 2015


On 2015-12-19 13:55 <c.buhtz at posteo.jp> wrote:
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/local/lib/python3.4/dist-packages/Bio/Entrez/Parser.py",
> line 243, in parse text = handle.read(BLOCK)
> AttributeError: 'bytes' object has no attribute 'read'

btw. When using zipfile.extractall() and then open these extracted
files with mode 'rb' it workes.
But I don't want to waste resource with storing unnecessary files to
the filesystem.
-- 
GnuPGP-Key ID 0751A8EC


More information about the Biopython mailing list