Re: [PyQt] Problem freezing a Sqlite based PyQT app
On Mon, 2010-01-11 at 21:54 -0500, Demetrius Cassidy wrote: You probably forgot to include the sqlite3.dll with your redist package. Alternatively, you can try to use py2exe instead of cx_Freeze. It works pretty well for me and is good at picking up dependencies. AFAIK, py2exe doesn't have *any* support for picking up implicit dependencies. For instance, for PyQt, it doesn't know about Qt plugins so it would not pick up anything. PyInstaller (http://www.pyinstaller.org/), instead, should work out of the box. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Problem freezing a Sqlite based PyQT app
I actually had nothing but problems with PyInstaller. In my instance, I am using Twisted + PyQt4 in my app, so I could never even get it to run while frozen. Not to mention it seems to want to pickup every dll in my system to package it into my app (like kernel32.dll). You can manually copy the Qt plugins folder, since you should only need to do this once unless you delete the dist folder each build (that gets annoying quick). I know theres no support for implicit dependencies, but you can explicitly define them in the setup script (or you can use something like Gui2Exe). Giovanni Bajo wrote: On Mon, 2010-01-11 at 21:54 -0500, Demetrius Cassidy wrote: You probably forgot to include the sqlite3.dll with your redist package. Alternatively, you can try to use py2exe instead of cx_Freeze. It works pretty well for me and is good at picking up dependencies. AFAIK, py2exe doesn't have *any* support for picking up implicit dependencies. For instance, for PyQt, it doesn't know about Qt plugins so it would not pick up anything. PyInstaller (http://www.pyinstaller.org/), instead, should work out of the box. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Problem freezing a Sqlite based PyQT app
2010/1/11 Anil ani...@atlastooling.com.au Have you included sqldrivers folder in to your package? On 12/01/2010 11:55 AM, Claudio Felix wrote: 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 p...@riverbankcomputing.comhttp://www.riverbankcomputing.com/mailman/listinfo/pyqt -- 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\ 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. Cheers, Claudio ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Problem freezing a Sqlite based PyQT app
You probably forgot to include the sqlite3.dll with your redist package. Alternatively, you can try to use py2exe instead of cx_Freeze. It works pretty well for me and is good at picking up dependencies. Claudio Felix wrote: 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 listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt