Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QSqlDatabase: QSQLITE driver not loaded
Forum Updated to NodeBB v4.3 + New Features

QSqlDatabase: QSQLITE driver not loaded

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kaafp
    wrote on last edited by
    #1

    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']

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved