<div>hi all,</div> <div>I have installed python 2.5 , QT 4.3.3 opensource with mingw, and pyqt 4.3.1-1 on a winXP machine.</div> <div>I am trying to establish a connection to the postgres SQL 8.2 database on my machine using the pyqt . The code is as under :-</div> <div> </div> <div>from PyQt4.QtGui import *<BR>from PyQt4.QtCore import *<BR>from PyQt4 import QtSql</div> <div> </div> <div>db = QtSql.QSqlDatabase.addDatabase("QPSQL")<BR>db.setDatabaseName("test")<BR>db.setUserName("root")<BR>db.setPassword("mypass")<BR>name = db.open()<BR>print db.lastError().text()<BR></div> <div>I get an error <STRONG><EM>driver not loaded</EM></STRONG> . I can't understand how to have the psql driver loaded.</div> <div>Can someone help me out.</div> <div>By the using psycopg2 I can easily establish connection and also execute queries on the database.</div> <div>thanks in advance.</div> <div>nishith</div><p> 
<hr size=1>Never miss a thing. <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>