[Eric] Problem with Assistant plugin
Łukasz Szweda
qkiss1 at tlen.pl
Mon Jul 6 21:11:34 BST 2009
Hi,
I tried to install the assistant plugin. However it does not activate on
startup nor on explicit activate giving the following error:
"The SQLite database driver is not available."
I looked into sources, found __checkQSql() function and repeated the
steps in console. Check out the following snippets:
>>> from PyQt4 import QtSql
>>> db = QtSql.QSqlDatabase.
addDatabase("QSQLITE")
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlDatabase: an instance of QCoreApplication is required for loading
driver plugins
>>> QtSql.QSqlDatabase.drivers().count()
0
and:
>>> import sys
>>> from PyQt4 import QtGui
>>> app = QtGui.QApplication(sys.argv)
>>> from PyQt4 import QtSql
>>> db = QtSql.QSqlDatabase.addDatabase("QSQLITE")
>>> QtSql.QSqlDatabase.drivers().count()
3
So it seemes that the drivers are not loaded on startup and on
activation because an application instance is not created. Does anyone
else have such problems on Windows XP?
Best regards,
Lukasz
More information about the Eric
mailing list