On Sat, 2012-01-07 at 21:03 +0200, 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
> 
> 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.

One fix to this would be to upgrade to a later Python (maybe Python
2.6.6+, I forget exactly when it was allowed).  Later versions allows
Unicode in **kw keys.

- C


> 
> -- 
> Raoul Snyman
> B.Tech Information Technology (Software Engineering)
> E-Mail:   raoul.sny...@gmail.com
> 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 pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to