Current version( 2.3.2-1) is incompatible with newest sqlite3

Bug #54772 reported by lucasvo
Affects Status Importance Assigned to Milestone
python-pysqlite2 (Ubuntu)
Fix Released
Matthias Klose
Won't Fix

Bug Description

I had problems running a script:
lucasvo@supernova:~/Desktop/vincisolutions/webmail/tags$ python syncdb
Traceback (most recent call last):
  File "", line 11, in ?
  File "/usr/lib/python2.4/site-packages/django/core/", line 1319, in execute_manager
    execute_from_command_line(action_mapping, argv)
  File "/usr/lib/python2.4/site-packages/django/core/", line 1243, in execute_from_command_line
  File "/usr/lib/python2.4/site-packages/django/core/", line 450, in syncdb
    table_list = _get_table_list()
  File "/usr/lib/python2.4/site-packages/django/core/", line 68, in _get_table_list
    return get_introspection_module().get_table_list(cursor)
  File "/usr/lib/python2.4/site-packages/django/db/backends/sqlite3/", line 7, in get_table_list
  File "/usr/lib/python2.4/site-packages/django/db/backends/", line 12, in execute
    return self.cursor.execute(sql, params)
  File "/usr/lib/python2.4/site-packages/django/db/backends/sqlite3/", line 77, in execute
    return Database.Cursor.execute(self, query, params)
pysqlite2.dbapi2.Warning: You can only execute one statement at a time.

Revision history for this message
Jan Alonzo (jmalonzo) wrote :

Hi! This also happens to me. This happens in the package distributed by ubuntu. I rebuilt the package and this problem went away.


Revision history for this message
Chris Gebhardt (dev-openserve) wrote :

This is an API breakage bug in pysqlite2 previous to 2.0.7 and is well known.

See these posts:

Suggested Fix:
Upgrade to 2.0.7 or backport the changes to the Ubuntu 2.0.5 version. I recommend simply upgrading to 2.0.7, as there are no changes from 2.0.5, only bugfixes. This should be safe for Edgy/updates (no API or functionality changes).

See also the 2.0.6 changelog for proof that nothing else has changed:

Revision history for this message
Matthias Klose (doko) wrote :

fixed in feisty, opened an edgy task. could you prepare a package for edgy-updates?

Changed in python-pysqlite2:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
importance: Undecided → Medium
status: Unconfirmed → Confirmed
assignee: nobody → doko
status: Confirmed → Fix Released
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The 18 month support period for Edgy Eft 6.10 has reached it's end of life. As a result, we are closing the Edgy nomination. Thanks.

Changed in python-pysqlite2:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.