<br><br><div class="gmail_quote">On Wed, Dec 10, 2008 at 10:29 AM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 10 Dec 2008 10:05:12 +0100, "piotr maliński" <<a href="mailto:riklaunim@gmail.com" target="_blank">riklaunim@gmail.com</a>><br>
wrote:<br>
<div><div></div><div>> I've installed latest PyQt4 release for Windows and the problem is it<br>
> doesn't has MySQL driver (QSqlDatabase: QMYSQL driver not loaded). There<br>
is<br>
> only SQLITE and ODBC...<br>
<br>
</div></div>Correct - you will have to compile Qt and PyQt yourself with the necessary<br>
support.<br>
</blockquote><div><br><br>I have some problems also using the SQLITE drivers under windows.<br><br>I installed the binary package for Qt and PyQt4, but then I get this error:<br><br><br>------ <br>G:\home>c:\Python25\python.exe<br>
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on<br>win32<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> from PyQt4.QtSql import *<br>
>>> QSqlDatabase.isDriverAvaible("QSQLITE")<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>AttributeError: isDriverAvaible<br>>>> QSqlDatabase.isDriverAvailable("QSQLITE")<br>
False<br>------<br><br><br>In the directory C:\Python25\Lib\site-packages\PyQt4\plugins\sqldrivers I have these files:<br><br>libqsqlite4.a<br>libqsqlited4.a<br>libqsqlodbc4.a<br>libqsqlodbcd4.a<br>qsqlite4.dll<br>qsqlited4.dll<br>
qsqlodbc4.dll<br>qsqlodbcd4.dll<br><br><br>while in the directory C:\Qt\4.4.3\plugins\sqldrivers I have these files:<br><br>libqsqlite4.a<br>libqsqlited4.a<br>libqsqlodbc4.a<br>libqsqlodbcd4.a<br>qsqlite4.dll<br>qsqlited4.dll<br>
qsqlodbc4.dll<br>qsqlodbcd4.dll<br><br><br>The demo from the Qt4 installation works fine<br><br>Any hints ?<br><br>bye<br>Gianluca<br><br></div></div><br>