Google App Engine and SQLite InternalError: unable to open database file

This is quite an old issue and I’m suppressed that is have not been corrected yet. Maybe windows people do rarely use SQLite stub in dev, but it will change soon since it is becoming a default one.

Apparently the problem root is bad TMP folder resolution case the TMP env variable is being stripped down by the GAE dev server.

The workaround for this is putting this in your app.yaml file:

env_variables:
TMP: C:\Users\USERNAME\AppData\Local\Temp

or

env_variables:
TMP: ..\temp

Kudos to mattbergin

Leave a Reply

Back to Top