[Buildbot-devel] UnicodeDecodeError in webfrontend

Spielmann, Christoph christoph.spielmann at machineering.de
Sun Mar 3 07:53:39 UTC 2013


Hi again,

As nobody seems to have an idea what is going on in my case i reverted my change to see what happens. Now i'm quite sure it really is connected with the first build because at the moment we are only doing a nightly build and i could use the web-frontend yesterday without any problems but as i tried to access the frontend today in the morning i got the UnicodeDecodeError again. And this is the original error message i received, maybe this rings a bell:

2013-03-03 09:00:35+0100 [HTTPChannel,31,192.168.2.94] Unhandled Error	
Traceback (most recent call last):	
  File "/usr/lib64/python2.7/site-packages/buildbot/status/web/base.py", line 326, in render	
    d = defer.maybeDeferred(lambda : self.content(request, ctx))	
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 133, in maybeDeferred	
    result = f(*args, **kw)	
  File "/usr/lib64/python2.7/site-packages/buildbot/status/web/base.py", line 326, in <lambda>	
    d = defer.maybeDeferred(lambda : self.content(request, ctx))	
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1141, in unwindGenerator	
    return _inlineCallbacks(None, f(*args, **kwargs), Deferred())	
--- <exception caught here> ---	
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks	
    result = g.send(result)	
  File "/usr/lib64/python2.7/site-packages/buildbot/status/web/root.py", line 57, in content	
    defer.returnValue(template.render(**cxt))	
  File "/usr/lib64/python2.7/site-packages/jinja2/environment.py", line 894, in render	
    return self.environment.handle_exception(exc_info, True)	
  File "/usr/lib64/python2.7/site-packages/buildbot/status/web/templates/root.html", line 2, in top-level template code	
    {% import 'forms.html' as forms %}	
  File "/usr/lib64/python2.7/site-packages/buildbot/status/web/templates/layout.html", line 70, in top-level template code	
    {%- block footer -%}	
  File "/usr/lib64/python2.7/site-packages/buildbot/status/web/templates/layout.html", line 84, in block "footer"	
    Page built: <b>{{ time }}</b> ({{ tz }})	
exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 7: ordinal not in range(128)


Thanks again,

Christoph
Am 01.03.2013 20:51:33, schrieb Dustin J. Mitchell:
> That's very odd.  I don't see why Python would be attempting to
> *decode* a bytestring in
> 
>                     time = time.strftime("%a %d %b %Y %H:%M:%S",
>                                         time.localtime(util.now())),
> 
> util.now() returns an int or float.  localtime returns a tuple of nine
> integers.  And strftime *generates* strings.
> 
> >>> locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')
> 'de_DE.UTF-8'
> >>> strftime("%a %d %b %Y %H:%M:%S", localtime())
> 'Fr 01 M\xc3\xa4r 2013 20:48:27'
> >>> dict(time=strftime("%a %d %b %Y %H:%M:%S", localtime()))
> {'time': 'Fr 01 M\xc3\xa4r 2013 20:49:57'}
> 
> Anyone else see what I'm missing?
> 
> DUsti




--
-- 
--------------------------------------------
Dipl.-Ing. Christoph Spielmann

machineering GmbH & Co. KG
Simulation und Automatisierung
Pfrontener Platz 25a
80686 München

Tel: + 49 (0) 89 54 72 69 - 28
Mail:  christoph.spielmann at machineering.de
Web: www.machineering.de

--------------------------------------------

machineering GmbH & Co. KG, HRA 94550, Amtsgericht München
machineering Verwaltungs-GmbH, HRB 181877, Amtsgericht München
Ust-IdNr.: DE268988178
Geschäftsführung: B.Freyer

--------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20130303/5753008d/attachment.html>


More information about the devel mailing list