[Biopython-dev] [Bug 2769] New: Entrez results: seek methods doesn't work?

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Fri Feb 20 11:15:24 EST 2009


http://bugzilla.open-bio.org/show_bug.cgi?id=2769

           Summary: Entrez results: seek methods doesn't work?
           Product: Biopython
           Version: 1.49b
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main Distribution
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: dalloliogm at gmail.com


Many methods in Entrez return a file-like object which has methods like .read,
.readlines, etc..

However I report this error in the .seek method:

>>> from Bio import Entrez
>>> result = Entrez.einfo()
>>> print result.read()
<?xml version="1.0"?>
...
</eInfoResult>

>>> print result.read()

>>> print handle.seek(0)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)

/home/gioby/<ipython console> in <module>()

/home/gioby/usr/share/biopython/Bio/File.pyc in seek(self, *args)
     89     def seek(self, *args):
     90         self._saved = []
---> 91         self._handle.seek(*args)
     92 
     93     def __getattr__(self, attr):

AttributeError: addinfourl instance has no attribute 'seek'


p.s. system info: I am running the latest biopython cvs.


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Biopython-dev mailing list