In my case I had already installed sqlite-dev (this is on a RHEL6 install) but I was getting the error:
ImportError: No module named pysqlite2
when trying to run Cuckoo Sandbox 0.5.
I looked in the setup.py code and found the following code:
# We hunt for #define SQLITE_VERSION "n.n.n" # We need to find >= sqlite version 3.0.8 sqlite_incdir = sqlite_libdir = None sqlite_inc_paths = [ '/usr/include', '/usr/include/sqlite', '/usr/include/sqlite3', '/usr/local/include', '/usr/local/include/sqlite', '/usr/local/include/sqlite3', ]
On my system sqlite3 was installed to “/usr/bin/sqlite3” so the fix was just to add that line to sqlite_inc_paths:
# We hunt for #define SQLITE_VERSION "n.n.n" # We need to find >= sqlite version 3.0.8 sqlite_incdir = sqlite_libdir = None sqlite_inc_paths = [ '/usr/include', '/usr/include/sqlite', '/usr/include/sqlite3', '/usr/local/include', '/usr/local/include/sqlite', '/usr/local/include/sqlite3', '/usr/bin/sqlite3', ]
Sign up for Free Email Updates
Enter your name and email below to sign up for free daily email updates.
[inbound_forms id=”2447″ name=”Contact Form”]