[PyQt] Re: missing sql drivers

Mario Daniel Carugno carugnom at gmail.com
Wed Aug 19 14:54:03 BST 2009


2009/8/18 Mario Daniel Carugno <carugnom at gmail.com>:
> Hi, i've installed PyQt4 (Py2.5-gpl4.4.3-1.exe) on Windows.
> That release has sql support, and i use the ODBC driver. I know it
> works since i use this same release in another Windows machines.
> But in this particular computer, when i run the same code that works
> in the others, i get the following error:
>
>  QSqlDatabase: QODBC driver not loaded
>  QSqlDatabase: available drivers:
>  QSqlDatabase::prepare: database not open
>
> It seems that the PyQt installation has no sql drivers, but it's the
> same installation that works in the other computers. Besides i've
> checked out \Python25\Lib\site-packages\PyQt4\plugins\sqldrivers and
> there are DLLs (qsqlodbc4.dll and others).
>
> The path is ok, the ODBC source is configured.
> The application shows the GUI, but it don't find any sql driver.
>
> Some idea about what could be wrong ?
>
Fixed by uninstalling everything, deleting the python25 directory, and
reinstalling everything again... I'll never understand why this ugly
method always works ;-)

Regards



More information about the PyQt mailing list