Unsolved QSqlDatabase: QSQLITE driver not loaded
-
Hi , there .
I know that this question was discussed many times , but i'm still can't resolve situation , will appreciate any help !
Anaconda Python 2.7 + PyQt 4 , Sierra .
db = QtSql.QSqlDatabase.addDatabase('QSQLITE')
db.setDatabaseName('test.db')
db.open()
gives:
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlQuery::exec: database not openprint QtSql.QSqlDatabase.drivers()
print QtGui.QApplication.libraryPaths()[]
[u'/Users/xxx/anaconda/plugins', u'/Users/xxx/anaconda/bin'] -
Hi and welcome to devnet,
How did you install PyQt exactly ? Through conda ? By hand ?