On 22 Oct 2013, at 11:00pm, David Simmons <[email protected]> wrote:
> I am becoming more and more frustrated when I attempt to create a local Mac > app with py2app when sqlite3 database is being used. The py2app creates the > application, however; executing it immediately causes the app to exit with > error code 255. I've spent days searching the internet for a solution on how > to get sqlite to work in a python application. ANY HELP would be greatly > appreciated. 1) Just for diagnostics purposes try specifying the full path to a database file instead of just a filename. Compiled apps may be defaulting to a different path (perhaps one that doesn't exist). 2) Assuming that you're using this interface: <http://docs.python.org/2/library/sqlite3.html> Try getting 'sqlite3.sqlite_version' as referred to here: <http://docs.python.org/2/library/sqlite3.html#module-functions-and-constants> before you open the database file. Do you get a proper string back or an error message ? 3) What does error code 255 mean ? It's not a SQLite code, it must be Python. Use all your cleverness in trying to identify which line of code is causing it. Simon. _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

