[PyQt] QtSql connection fail where psycopg2 success?

Andreas Pakulat apaku at gmx.de
Wed Jan 11 10:45:06 GMT 2012


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



More information about the PyQt mailing list