<div><div class="post-text" itemprop="description"><p></p>

<p>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:</p>

<blockquote>
  <p>Database error: Driver not loaded Driver not loaded</p>
</blockquote>

<p>For the Windows installer, the files in  <code>\Qt\version\plugins\sqldrivers\*.*</code> can be copied to <code>\myApp\sqldrivers\*</code></p>

<p>The same files on the Mac can be found in <code>/opt/local/share/qt4/plugins/sqldrivers</code> (installed via Macports).</p>

<p>However, copying the <code>sqldrivers</code> directory to my application's <code>Resources</code> or <code>Frameworks</code> directories still results in the same error.</p>

<p>How can I add sqlite support into my application that is built using py2app?</p></div></div><div class="post-taglist"><span style="font-size: 14px;">Any help would be much appreciated.</span></div><div class="post-taglist"><span style="font-size: 14px;"><br></span></div><div class="post-taglist"><span style="font-size: 14px;"><br></span></div><div class="post-taglist"><span style="font-size: 14px;">Regards,</span></div><div class="post-taglist"><span style="font-size: 14px;">Patrick</span></div>