Hey, You are most likely experiencing issues because Python 3.2 is not supported by MarkupSafe, and that is required for use by the default filter in pyramid_mako. If you want to use Python 3, I would highly recommend using Python 3.3.
The default filter set up by pyramid_mako is “h” which as can be seen on http://docs.makotemplates.org/en/latest/filtering.html is "HTML escaping, provided by markupsafe.escape(string)” You could add mako.default_filters = n to your development.ini as a work around (untested) but it is not considered safe. Bert JW Regeer On Mar 2, 2014, at 02:41 , Jarek Rozanski <[email protected]> wrote: > Hi all, > > When trying to use pyramid 1.4.5 I am facing issues with debugtoolbar 2.0.2. > > Default project creation: > pcreate -s alchemy sample > python3 setup.py develop > initialize_sample_db development.ini > pserver setup.py development.ini > > Namely I am getting following stack: > > Traceback (most recent call last): > […] > File > "~/PycharmProjects/python32pyramid/lib/python3.2/site-packages/mako/filters.py", > line 39, in <module> > html_escape = markupsafe.escape > AttributeError: 'module' object has no attribute 'escape' > > Disabling debugtoolbar does the trick and I can proceed using Pyramid, but > still seems something is not right. Any tips? > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/pylons-discuss. > For more options, visit https://groups.google.com/groups/opt_out.
smime.p7s
Description: S/MIME cryptographic signature
