[Buildbot-devel] UnicodeDecodeError in webfrontend

Spielmann, Christoph christoph.spielmann at machineering.de
Fri Mar 1 20:01:47 UTC 2013


Hi,

Yeah i had a quick look at the util.now()-method and that's why i figured the problem is with the strftime-function and wrapped it in a unicode-call. Might have another explanation for the occurence of the problem: It seems that it happens after a build is run, because if i restart the buildmaster i can work with the web-interface as long as i want but as soon as the first build finishes everythings falling to pieces and i can't get it to work again unless i restart the master

Thanks for your answer thought,

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/20130301/7b4ca86f/attachment.html>


More information about the devel mailing list