Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After fixing the small error created by forgetting to import Extension, I ran into other errors stating a problem with the -lsqlite3 flag. Turns out I needed to follow the steps outlined here: <a href="http://cboard.cprogramming.com/cplusplus-programming/82135-sqlite-questions.html" rel="nofollow noreferrer">http://cboard.cprogramming.com/cplusplus-programming/82135-sqlite-questions.html</a></p> <ol> <li>Download sqlitedll-3_3_7.zip and sqlite-source-3_3_7.zip from sqlite.org/download.html</li> <li><p>Extract sqlitedll-3.3.7.zip and then run from the command line:</p> <p>dlltool -D sqlite3.dll -d sqlite3.def -l libsqlite3dll.a</p></li> <li>Place libsqlite3dll.a (just created) in the MinGW lib directory.</li> <li>Place sqlite3.dll in your system path (c:\Windows\System32\ worked for me)</li> <li>Extract sqlite-source-3_3_7.zip and place sqlite3.h in your MinGW include directory.</li> <li>When you link, you will need to supply the parameter: -lsqlite3dll (this meant changing libraries=['sqlite3'] to libraries=['sqlite3dll'])</li> </ol> <p>...After that the build worked.</p> <p>Here's the setup file again:</p> <pre><code>from distutils.core import setup, Extension import py2exe import matplotlib import os import numpy setup(console=['cpa.py'], options={ 'py2exe': { 'packages' : ['matplotlib', 'pytz', 'MySQLdb', 'pysqlite2'], 'includes' : ['PILfix', 'version'], "excludes" : ['_gtkagg', '_tkagg', "Tkconstants","Tkinter","tcl"], "dll_excludes": ['libgdk-win32-2.0-0.dll', 'libgobject-2.0-0.dll', 'libgdk_pixbuf-2.0-0.dll', 'tcl84.dll', 'tk84.dll'] } }, data_files=matplotlib.get_py2exe_datafiles(), ext_modules = [Extension('_classifier', sources = ['_classifier.c'], include_dirs=[numpy.get_include()], libraries = ['sqlite3dll'])] ) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload