[pypy-issue] [issue1325] pypy + sqlite3 problem on Mac OSX

Amaury Forgeot d Arc tracker at bugs.pypy.org
Wed Nov 14 17:29:59 CET 2012


Amaury Forgeot d Arc <amauryfa at gmail.com> added the comment:

You stripped the intersting error message, just after the traceback. But it's certainly the line 'raise 
OperationalError("Could not open database")'

I noticed that our Connection object has no __del__, so the connections are probably not closed. The "with" 
statement will only commit/rollback the transaction, not close it.

Does a "con.close()" fix the issue?

----------
nosy: +afa
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1325>
________________________________________


More information about the pypy-issue mailing list