I am running Ubuntu 10.04 Lucid and am developing a application in QT using Python. Today I tried to create a database binding to a SQLite database via QtSQL.QAddDatabase and got the following error:
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: QMYSQL3 QMYSQL
So obviously I don’t have the SQLite driver…how can I add it to my install? I installed PySide to see if it included it (via the PPA)…same thing…no SQLite…maybe I can reconfigure and build the python-qt-sql package but I need instructions on how to to it…
Got it solved…the QT4 SQLite driver was missing…used this:
sudo aptitude install libqt4-sql-sqlite
That solved it and now it works in PyQT and PySide.