gae / flask: import magic incompatibility

Issue #293 resolved
Reimar Bauer
created an issue

Flask-Cache shows some import failure under dev_appserver that works without dev_appserver.

'Flask-Cache<0.8' in somehow works around it.

Comments (9)

  1. Thomas Waldmann repo owner

    btw, this exception only happens when running the moin gae code under the GAE dev_appserver.

    it does not happen when running code from default branch without GAE dev_appserver.

    as our code is the same for both cases, i suspect that somehow the module import magic is misbehaving (see last line in the traceback, it tries to import jinja2 from the wrong namespace).

    even if one avoids the jinja2 import using with_jinja2_ext=True, it'll just crash at another import due to same reason.

  2. Thomas Waldmann repo owner

    hmm, looks like we have a quite similar issue for flask-themes running under the gae dev server. as flask-themes didn't change for long, what is causing this now?

    Note: maybe the flask-themes issue is unrelated and was just a missing in the flaskext package.

  3. Thomas Waldmann repo owner

    looks like it's fixed now (by new flask-cache and by the fix). closing.

    but: it seems like the change in flask-cache is only a workaround, so the fundamental issue in flask / appengine is still there.

  4. Log in to comment