Re: [BUGREPORT] broken comments.py

Klaus Trainer <klaus.trainer-S0/[email protected]> Sun, 12 Oct 2008 13:12:29 +0200
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
> Ok, I tested this here and it is working, Can you now check once again  
> the backtrace you get and send it to me. Just to make sure.
> Right now line 999 in comments.py
> 
> encodedEntry = entry[key].encode(encoding, 'ignore')
> 
> is raising the UnicodeDEcode error, right?

Yeah, line 999 is raising a UnicodeDecodeError. Just copied the comment
file I've sent to you into the appropriate comments directory and again
got that error. It's really strange...

Klaus

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Pyblosxom-devel mailing list
Pyblosxom-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel
error.log (text/plain, 3.8 KB)
[Sun Oct 12 11:01:02 2008] [notice] Apache/2.2.9 (Debian) mod_wsgi/2.3 Python/2.5.2 configured -- resuming normal operations
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28] mod_wsgi (pid=6871): Exception occurred processing WSGI script '/home/klausi/myblog/cgi-bin/pyblosxom.wsgi'., referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28] Traceback (most recent call last):, referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]   File "/usr/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py", line 495, in __call__, referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]     return [self.run_pyblosxom(env, start_response)], referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]   File "/usr/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py", line 487, in run_pyblosxom, referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]     p.run(), referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]   File "/usr/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py", line 203, in run, referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]     blosxom_handler(self._request), referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]   File "/usr/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py", line 1047, in blosxom_handler, referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]     renderer.render(), referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]   File "/usr/lib/python2.5/site-packages/Pyblosxom/renderers/blosxom.py", line 337, in render, referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]     self._processContent(), referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]   File "/usr/lib/python2.5/site-packages/Pyblosxom/renderers/blosxom.py", line 288, in _processContent, referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]     output, current_date = self._processEntry(entry, current_date), referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]   File "/usr/lib/python2.5/site-packages/Pyblosxom/renderers/blosxom.py", line 256, in _processEntry, referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]     { "entry": entry, "template": template }), referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]   File "/usr/lib/python2.5/site-packages/Pyblosxom/renderers/blosxom.py", line 408, in _run_callback, referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]     defaultfunc=lambda x:x), referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]   File "/usr/lib/python2.5/site-packages/Pyblosxom/tools.py", line 848, in run_callback, referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]     output = func(input), referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]   File "/home/klausi/myblog/plugins/comments.py", line 999, in cb_story_end, referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28]     encodedEntry = entry[key].encode(encoding, 'ignore'), referer: http://klaus.homeunix.net/blog
[Sun Oct 12 11:01:21 2008] [error] [client 62.104.72.28] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1143: ordinal not in range(128), referer: http://klaus.homeunix.net/blog