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 open

    print QtSql.QSqlDatabase.drivers()
    print QtGui.QApplication.libraryPaths()

    []
    [u'/Users/xxx/anaconda/plugins', u'/Users/xxx/anaconda/bin']


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    How did you install PyQt exactly ? Through conda ? By hand ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.