I've upgraded my dev machin to Debian testing as of today, this gave me
python2.4-pysqlite2 at version 2.0.5, I'm not sure what was the version
before the upgrade. Since I upgraded I get the following traceback when
starting my app or trying tg-admin sql create:
$ tg-admin sql create
Using database URI sqlite:///tmp/noticethat-dev.db?debug=1
1/QueryOne: SELECT tbl_name FROM sqlite_master WHERE type='table' AND
tbl_name = 'permission'
1/QueryR : SELECT tbl_name FROM sqlite_master WHERE type='table' AND
tbl_name = 'permission'
1/COMMIT : auto
Traceback (most recent call last):
File "/usr/local/bin/tg-admin", line 7, in ?
sys.exit(
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a3-py2.4.egg/turbogears/command/base.py",
line 262, in main
command.run()
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a3-py2.4.egg/turbogears/command/base.py",
line 121, in run
command.the_runner.run(sys.argv)
File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1684-py2.4.egg/sqlobject/manager/command.py",
line 102, in run
runner.run()
File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1684-py2.4.egg/sqlobject/manager/command.py",
line 233, in run
self.command()
File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1684-py2.4.egg/sqlobject/manager/command.py",
line 550, in command
exists = soClass._connection.tableExists(soClass.sqlmeta.table)
File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1684-py2.4.egg/sqlobject/sqlite/sqliteconnection.py",
line 198, in tableExists
result = self.queryOne("SELECT tbl_name FROM sqlite_master WHERE
type='table' AND tbl_name = '%s'" % tableName)
File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1684-py2.4.egg/sqlobject/dbconnection.py",
line 348, in queryOne
return self._runWithConnection(self._queryOne, s)
File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1684-py2.4.egg/sqlobject/dbconnection.py",
line 219, in _runWithConnection
val = meth(conn, *args)
File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1684-py2.4.egg/sqlobject/dbconnection.py",
line 341, in _queryOne
self._executeRetry(conn, c, s)
File
"/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1684-py2.4.egg/sqlobject/dbconnection.py",
line 297, in _executeRetry
return cursor.execute(query)
pysqlite2.dbapi2.Warning: You can only execute one statement at a time.
According to a former thread this exception is supposed to happen when
there is more than one command in cursor.execute(), but the debug
output shows a single command.
Anyone have any idea about this?
Baruch
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---