Trac 0.12 refuses to serve up the CSS
|Reported by:||Owned by:||Martin Scharrer|
I was not able to get this plugin to work with Trac 0.12. Everything was installed and configured as needed, but the following error appeared in the trac log file every time a page was accessed:
2010-08-02 18:27:13,656 Trac[plugin] ERROR: decoding Unicode is not supported
The fix is quite simple (or is it a workaround, I am not sure):
Change tracwikicss/plugin.py, line 45 to convert the unicode string to bytes:
req.send( wiki.text.encode( "utf-8" ), content_type='text/css', status=200)
It worked for me.