[Pythonmac-SIG] Sqlite database drivers with py2app?

2012-06-28 Thread Patrick Kenny
I have a python application that uses a sqlite database. On my machine, which has all the dependencies installed, there are no issues. However, when I bundle the application with py2app, clicking a menu that causes the database to be accessed results in this error: > Database error: Driver not

Re: [Pythonmac-SIG] Sqlite database drivers with py2app?

2012-06-28 Thread Michael McCracken
Patrick, I've run into a similar problem - qt needs a qt.conf file to be created in the Contents/Resources folder of the app bundle, with a directive telling it where to find plugins. otherwise it looks in the default system path. The environment variable QT_DEBUG_PLUGINS=1 can be very useful here

Re: [Pythonmac-SIG] Sqlite database drivers with py2app?

2012-06-28 Thread Michael McCracken
Hey, I'm glad that was useful! Another thing that probably won't affect you, but in case it does - make sure you keep a reference in your python script to the QtApplication that you create. ie, do 'app = QApplication(sys.argv)' instead of just 'QApplication(sys.argv)'. Otherwise the QApplication