<br><br><div class="gmail_quote">2010/1/11 Anil <span dir="ltr"><<a href="mailto:anilet@atlastooling.com.au">anilet@atlastooling.com.au</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Have you included "sqldrivers" folder in to your package?<div><div></div><div class="h5"><br>
<br>
On 12/01/2010 11:55 AM, Claudio Felix wrote:
</div></div><blockquote type="cite">
<pre>Hello everyone,
I've been developing a PyQT database app which uses a SQlite3
database. It is working just fine on my development environment, which
is Linux based. My problem is the end users want it running on
Windows, and it does run fine on it, until I try freezing it (they
wouldn't have a clue as how to install python, PyQT and all by
themselves). I'm using cx_Freeze to get it done and on Linux even the
frozen version runs just fine, but on Windows I get this error:
Database Error: Driver not loaded
Have you guys hit anything like this before? I'm using the same
version of cx_Freeze on Linux and Windows (4.1.2) and the software
doesn't have any different imports for one or the other, so I guess
the same modules should be included in the freezing process.. is there
anything obvious I'm missing? The cx_Freeze command line used was like
this (also tried from eric4 packager plugin, with same result):
cxfreeze --target-dir=c:\test --target-name=app.exe
--base-name=Win32GUI mainwindow.py
If this helps, python version is 2.6.2, QT is 4.5.2 and PyQT is 4.4.4.
Thanks and congratulations for the great work in PyQT!
Claudio
_______________________________________________
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a>
</pre>
</blockquote>
<br>
<div>-- <br></div></div></blockquote></div><br>Thanks Anil, it worked just fine! Just complementing for those who face
the same problem in the future, I had to copy the
C:\Python26\Lib\site-packages\<div id=":1b5" class="ii gt">PyQt4\plugins\sqldrivers dir to my
frozen app target-dir. The only file needed in my case was qsqlite4.dll
(which refers to QSqlite), but it has to be in a folder named
''sqldrivers'' into the target-dir for the app to work.<br>
<br>Cheers,<br><font color="#888888"><br>Claudio</font></div><br>