[pypy-issue] [issue1205] PyPy issue 349 is unreadable (due to leap second?)
Dave Malcolm
tracker at bugs.pypy.org
Thu Jul 5 22:31:33 CEST 2012
New submission from Dave Malcolm <dmalcolm at redhat.com>:
(This is a metabug, filing here for now)
Attempting to view https://bugs.pypy.org/issue349 gives a traceback:
A problem occurred in your template "issue.item.html".
Full traceback:
Traceback (most recent call last):
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/client.py", line 1007, in renderContext
result = pt.render(self, None, None, **args)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/templating.py", line 343, in render
getEngine().getContext(c), output, tal=1, strictinsert=0)()
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 192, in
__call__
self.interpret(self.program)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in
interpret
handlers[opcode](self, args)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 666, in
do_useMacro
self.interpret(macro)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in
interpret
handlers[opcode](self, args)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 411, in
do_optTag_tal
self.do_optTag(stuff)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 396, in
do_optTag
return self.no_tag(start, program)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 391, in no_tag
self.interpret(program)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in
interpret
handlers[opcode](self, args)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 689, in
do_defineSlot
self.interpret(slot)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in
interpret
handlers[opcode](self, args)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 632, in
do_condition
self.interpret(block)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in
interpret
handlers[opcode](self, args)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 632, in
do_condition
self.interpret(block)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 236, in
interpret
handlers[opcode](self, args)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/TAL/TALInterpreter.py", line 564, in
do_insertStructure_tal
structure = self.engine.evaluateStructure(expr)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/PageTemplates/TALES.py", line 227, in
evaluate
return expression(self)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/PageTemplates/Expressions.py", line 195, in
__call__
return self._eval(econtext)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/PageTemplates/Expressions.py", line 190, in
_eval
return render(ob, econtext.vars)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/PageTemplates/Expressions.py", line 96, in
render
ob = ob()
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/templating.py", line 892, in submit
self.input(type="hidden", name="@action", value=action) + '\n' + \
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/templating.py", line 446, in input_html4
return '<input %s>'%cgi_escape_attrs(**attrs)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/templating.py", line 441, in
cgi_escape_attrs
for k,v in attrs.items()])
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/templating.py", line 1272, in __str__
return self.plain()
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/cgi/templating.py", line 1655, in plain
return str(self._value.local(offset))
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/date.py", line 527, in local
self.hour, self.minute, self.second, offset)
File "/home/pypy/venv/lib/python2.6/site-packages/roundup/date.py", line 151, in _utc_to_local
dt = datetime.datetime(y, m, d, H, M, int(S), tzinfo=UTC)
ValueError: second must be in 0..59
My guess is that something within the data for that bug happened on a leap second, making the page
unreadable (though that's a guess).
----------
messages: 4547
nosy: dmalcolm, pypy-issue
priority: bug
status: unread
title: PyPy issue 349 is unreadable (due to leap second?)
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1205>
________________________________________
More information about the pypy-issue
mailing list