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

or

env_variables:
TMP: ..temp

Kudos to mattbergin

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s