[Biopython-dev] [Bug 2390] Error importing Swiss Prot in BioSQL

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Oct 30 22:32:12 UTC 2007


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





------- Comment #5 from Biosql at hotmail.com  2007-10-30 18:32 EST -------
It seems that a %s is missing at line 243 in Loader.py, since there's only 6 %s
 in the sql query, but 7 arguments are being fed for the loading of bioentry.
So I added an %s and the loading is fine, but another problem is arising after
this. 

Traceback (most recent call last):
  File "DB_Gen.py", line 25, in <module>
    db.load(iterator)
  File "/sw/lib/python2.5/site-packages/BioSQL/BioSeqDatabase.py", line 415, in
load
    db_loader.load_seqrecord(cur_record)
  File "/sw/lib/python2.5/site-packages/BioSQL/Loader.py", line 30, in
load_seqrecord
    bioentry_id = self._load_bioentry_table(record)
  File "/sw/lib/python2.5/site-packages/BioSQL/Loader.py", line 253, in
_load_bioentry_table
    bioentry_id = self.adaptor.last_id('bioentry')
  File "/sw/lib/python2.5/site-packages/BioSQL/BioSeqDatabase.py", line 148, in
last_id
    return self.dbutils.last_id(self.cursor, table)
  File "/sw/lib/python2.5/site-packages/BioSQL/DBUtils.py", line 35, in last_id
    return cursor.insert_id()
AttributeError: 'Cursor' object has no attribute 'insert_id'

I'm gonna check it tommorow.

Jonathan


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