The paths we follow are sometimes clouded with ego that prevent seeing the 
obvious.  Making code changes to first find and then include an explicit path 
to the sqlite database solved the problem.  Thanks for your help I can now move 
forward.  

BTW - I could not isolated Error Code 255 to a specific cause - sort of a 
general "Failure Code".

David

On Oct 23, 2013, at 6:54 AM, Simon Slavin <[email protected]> wrote:

> 
> 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

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to