On Jan 7, 2012, at 2:03 PM, Raoul Snyman wrote: > Hi, > > I'm running Pyramid 1.0 with the Mako templating engine via flup on a > host that only provides FastCGI. I've installed everything into a > virtual environment. I'm getting the following error when accessing > the site: > > URL: <redacted> > File > '/home/<redacted>/venv/lib/python2.6/site-packages/weberror/errormiddleware.py', > line 162 in __call__ > app_iter = self.application(environ, sr_checker) > File > '/home/<redacted>/venv/lib/python2.6/site-packages/pyramid-1.0-py2.6.egg/pyramid/router.py', > line 158 in __call__ > response = view_callable(context, request) > File > '/home/<redacted>/venv/lib/python2.6/site-packages/pyramid-1.0-py2.6.egg/pyramid/config.py', > line 2839 in _rendered_view > context) > File > '/home/<redacted>/venv/lib/python2.6/site-packages/pyramid-1.0-py2.6.egg/pyramid/renderers.py', > line 294 in render_view > request=request) > File > '/home/<redacted>/venv/lib/python2.6/site-packages/pyramid-1.0-py2.6.egg/pyramid/renderers.py', > line 322 in render_to_response > result = self.render(value, system_values, request=request) > File > '/home/<redacted>/venv/lib/python2.6/site-packages/pyramid-1.0-py2.6.egg/pyramid/renderers.py', > line 318 in render > result = renderer(value, system_values) > File > '/home/<redacted>/venv/lib/python2.6/site-packages/pyramid-1.0-py2.6.egg/pyramid/mako_templating.py', > line 131 in __call__ > result = template.render_unicode(**system) > TypeError: render_unicode() keywords must be strings
any chance you can use pdb.post_mortem() to get in there and just see what's actually in **system ? > > I know what the error says, but I've gone through my code and I've > stripped out every single last unicode string I could find, and I > still get this error. I don't get it when running locally on paster, > and I don't get it on my development server running Apache/mod_wsgi. I > really don't know where else to look, as the exception occurs before > my code starts running. > > Any help would be appreciated, and if you need more information, > please let me know. > > -- > Raoul Snyman > B.Tech Information Technology (Software Engineering) > E-Mail: [email protected] > Web: http://www.saturnlaboratories.co.za/ > Blog: http://blog.saturnlaboratories.co.za/ > Mobile: 082 550 3754 > Registered Linux User #333298 (http://counter.li.org) > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
