Possible lockfile undefined #278

Closed
iurisilvio opened this Issue Feb 2, 2012 · 2 comments

Comments

Projects
None yet
3 participants
Member

iurisilvio commented Feb 2, 2012

I never get this error, but I received a thumbs down in StackOverflow possible because of it.

http://stackoverflow.com/questions/8608743/whats-the-best-way-to-disable-jinja2-template-caching-in-bottle-py/8629800#comment11410724_8629800

If something wrong happens with lockfile creation in line 2440 (https://github.com/defnull/bottle/blob/master/bottle.py#L2440), in finally clause the lockfile variable don't exists, like it is commented in stackoverflow.

My theory is he is using some server adapter which don't support reloader=True.

Owner

defnull commented Feb 2, 2012

Am 02.02.2012 01:08, schrieb Iuri de Silvio:

I never get this error, but I received a thumbs down in StackOverflow possible because of it.

Here, have an upvote ;)

If something wrong happens with lockfile creation in line 2440 (https://github.com/defnull/bottle/blob/master/bottle.py#L2440), in finally clause the lockfile variable don't exists, like it is commented in stackoverflow.

My theory is he is using some server adapter which don't support reloader=True.

The reloader runs with any server adapter that does not block other
threads (e.g. fapws3), but is limited to python module files. Template
caching (at least the caching implemented by bottle) can be disabled
with debug=True. Your cache_size=0 example should work, but only with
jinja2_view().

To sum it up: The questioner forgot do enable debug mode.

@defnull defnull closed this in aa10da7 Feb 2, 2012

Yes, the questioner was using GAE and so am I, but that's an odd error to get when there's no mention in the docs about GAE not supporting reloader=True.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment