No luck adding path. I tried add path directly to the dll and copy them over to system32, didn't work.<div><br></div><div>This is strange. I'm at my office right now and 3 PC i'm testing this all have the same problem. I remember the connection worked perfectly on my home PC, will have to test that again tonight.</div>
<div><br></div><div>The QSqlDAtabase.drivers() only tells me it's a QStringList object. How do I print out it's contents?</div><div><br></div><div>Thanks for your help Andreas :)<br><br><div class="gmail_quote">On Wed, Jan 11, 2012 at 7:24 PM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 11.01.12 18:55:43, Panupat Chongstitwattana wrote:<br>
> Thanks Andreas.<br>
><br>
> You're right I used windows binary installer. I don't seem to have the<br>
> postgresql.dll anywhere, nor can I find the Qt installation folder : /<br>
<br>
</div>Sorry, should've mentioned that the filename was made up, no idea how<br>
its called on Windows. And as I said I also don't know the layout of the<br>
PyQt binary packages, so no idea what is to be considered the "Qt"<br>
directory or wether such a thing exists at all in the binary package.<br>
<div class="im"><br>
> Following your suggestion, lastError indead tells me drivers are not<br>
> loaded. But what makes me really confuse is that none of the drivers are<br>
> loading at all.<br>
><br>
> QtSql.QSqlDatabase.isDriverAvailable('QPSQL')<br>
> QtSql.QSqlDatabase.isDriverAvailable('QMYSQL')<br>
> QtSql.QSqlDatabase.isDriverAvailable('QSQLITE')<br>
><br>
> all returns False.<br>
><br>
> I tried download and install the latest binary package but still same<br>
> problem.<br>
<br>
</div>As even sqlite fails, that probably means the plugin is not found at<br>
all. Try adding C:\Python26\Lib\site-packages\PyQt4 to PATH.<br>
<br>
Also check what  QSqlDataBase.drivers() returns?<br>
<div class="HOEnZb"><div class="h5"><br>
Andreas<br>
<br>
_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br></div>