[PyQt] QtSql connection fail where psycopg2 success?

Panupat Chongstitwattana panupatc at gmail.com
Wed Jan 11 11:03:52 GMT 2012


Where is Qt's plugin folder? I can only find this

C:\Python26\Lib\site-packages\PyQt4\plugins\sqldrivers

It has 4 files in it.

qsqlite4.dll
qsqlmysql4.dll
qsqlodbc4.dll
qsqlpsql4.dll




On Wed, Jan 11, 2012 at 5:45 PM, Andreas Pakulat <apaku at gmx.de> wrote:

> On 11.01.12 16:56:38, Panupat Chongstitwattana wrote:
> > I'm using the same ip address, same user name and same password to make
> > connection. What could cause QtSqlDatabase to fail connection where
> > psycopg2 has no problem? Am I missing something? Do both of them connect
> to
> > the same port by default? Anyway to view more detail error message of
> QtSql?
>
> Did you check that you have the postgresql driver for Qt installed and
> working? Check the Qt plugins for the psql driver and check that it can
> find the postrgesql dll.
>
> Andreas
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120111/062210f5/attachment.html>


More information about the PyQt mailing list