[Biopython-dev] [Bug 2169] New: 'close' method is missing for ReseekFile wrapper

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Fri Dec 22 15:54:01 UTC 2006


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

           Summary: 'close' method is missing for ReseekFile wrapper
           Product: Biopython
           Version: 1.24
          Platform: All
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: sunhwanj at gmail.com


ReseekFile class doesn't have close method.
While I tried to read PDB file after I download pdb file using Bio.db,
PDBParser complains that it can't close pdbfile.

>>> from Bio.PDB.PDBParser import PDBParser
>>> from Bio import db
>>> 
>>> p = PDBParser()
>>> p.get_structure('1kdx', db['pdb']['1kdx'])

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Bio/PDB/PDBParser.py",
line 67, in get_structure
    file.close()
AttributeError: ReseekFile instance has no attribute 'close'


-- 
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