Coder Social home page Coder Social logo

Comments (9)

mitsuhiko avatar mitsuhiko commented on May 8, 2024

The template is not complete. Please provide a full testcase.

from jinja.

scyclops avatar scyclops commented on May 8, 2024

The template code doesn't seem to be displaying properly above so I've put it here instead:

http://gist.github.com/645489

from jinja.

mitsuhiko avatar mitsuhiko commented on May 8, 2024

That problem might be caused by having leftovers from Python 2.6 in your cache and now Python barks on broken bytecodes. You seem to have fixed it by changing the timestamp of the templates. To fix this you might just have to flush your cache.

from jinja.

scyclops avatar scyclops commented on May 8, 2024

Ahhh, that makes sense, because the memory cache never got flushed.

from jinja.

mitsuhiko avatar mitsuhiko commented on May 8, 2024

Can you confirm if this fixes the problem? If yes I will close the ticket.

from jinja.

scyclops avatar scyclops commented on May 8, 2024

Yep, I cleared the cache and now it works with the old template.

from jinja.

themartorana avatar themartorana commented on May 8, 2024

I'd like to make a suggestion that clearing the byte code cache after installing a new version of Python be made part of the documentation. I spent a half-day pulling my hair out on this one (not your fault) until I fell upon this posting.

Thanks!

from jinja.

mitsuhiko avatar mitsuhiko commented on May 8, 2024

The proper solution would be detecting that. I will try to see if that can be accomplished.

from jinja.

mitsuhiko avatar mitsuhiko commented on May 8, 2024

Jinja 2.6 will detect that. For earlier versions I added a note to the changelog, I hope that Google picks it up.

from jinja.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.