QSqlDatabase: QSQLITE driver not loaded

991 views
Skip to first unread message

Yifei Li

unread,
Apr 28, 2012, 8:30:29 AM4/28/12
to pyins...@googlegroups.com
Hi,

QHelpEngine is used in my program. When I run the binary, I got the following error:

QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: 

Here's what I've tried:

1. in qt4_plugins, make a directory called 'sqldrivers'
2. copy libqsqlite.dylib into 'sqldrivers'

Any help is appreciated.

Yifei

Adrià Cereto Massagué

unread,
Apr 28, 2012, 9:04:59 AM4/28/12
to pyins...@googlegroups.com
I think you must play with a qt.conf file telling the app where the plugins are, or do it programmatically (it's something like QApplication.loadLibraryPaths or something)

2012/4/28 Yifei Li <yif...@gmail.com>

Yifei

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To post to this group, send email to pyins...@googlegroups.com.
To unsubscribe from this group, send email to pyinstaller...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.



--
Adrià Cereto Massagué
Ph.D Student
Nutrigenomics Research Group
Biochemistry and Biotechnology Department
Building N4, Campus Sescelades
Universitat Rovira i Virgili
Tarragona, Catalonia

Languages: Català, Español, English, Français, Deutsch, Português

Nota importante | Important Notice

Martin Zibricky

unread,
Apr 28, 2012, 9:50:41 AM4/28/12
to pyins...@googlegroups.com
The issue seems to be no hook for the PyQt4.QtHelp module.

Could you please create a file ./PyInstaller/hooks/hook-PyQt4.QtHelp.py
with following content?

hiddenimports = ['sip', 'PyQt4.QtCore',
'PyQt4.QtGui', 'PyQt4.QtSql',
'PyQt4.QtNetwork', 'PyQt4._qt']




Yifei Li píše v So 28. 04. 2012 v 08:30 -0400:

Yifei Li

unread,
Apr 28, 2012, 3:29:26 PM4/28/12
to pyins...@googlegroups.com
Martin,

It works! Thank you very much.

Yifei

Martin Zibricky

unread,
Apr 29, 2012, 5:35:22 AM4/29/12
to pyins...@googlegroups.com
Yifei Li píše v So 28. 04. 2012 v 15:29 -0400:
> Martin,
>
> It works! Thank you very much.

The hook is commited. Thanks for testing.

Giovanni Bajo

unread,
May 4, 2012, 8:18:54 PM5/4/12
to pyins...@googlegroups.com, Adrià Cereto Massagué
Il giorno 28/apr/2012, alle ore 15:04, Adrià Cereto Massagué ha scritto:

I think you must play with a qt.conf file telling the app where the plugins are, or do it programmatically (it's something like QApplication.loadLibraryPaths or something)

FYI, PyInstaller does that, see support/rthooks/pyi_rth_qt4plugins.py:

-- 
Giovanni Bajo   ::  ra...@develer.com
Develer S.r.l.  ::  http://www.develer.com

My Blog: http://giovanni.bajo.it






Reply all
Reply to author
Forward
0 new messages