Opened 14 years ago

Closed 14 years ago

#2088 closed Bugs (fixed)

ValueError: invalid literal for int():

Reported by: Frank Mori Hess Owned by:
Milestone: Boost 1.36.0 Component: None
Version: Boost 1.35.0 Severity: Problem
Keywords: Cc:

Description

How to Reproduce

While doing a GET operation on /report/14, Trac issued an internal error.

I was trying to get report 14, active tickets by library

Request parameters:

{'id': u'14'}

User Agent was: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.5 (like Gecko) (Debian)

$&
Trac 0.11
Python 2.4.4 (#1, Jan 25 2007, 13:04:51)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)]
setuptools 0.6c8
SQLite 3.5.4
pysqlite 2.4.1
Genshi 0.5
Subversion 1.4.2 (r22196)
jQuery: 1.2.3 $&
Traceback (most recent call last):
  File "/opt/trac2/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/opt/trac2/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/web/main.py", line 219, in dispatch
    data, content_type)
  File "/opt/trac2/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/web/chrome.py", line 726, in render_template
    stream.render(method, doctype=doctype, out=buffer)
  File "build/bdist.linux-i686/egg/genshi/core.py", line 179, in render
  File "build/bdist.linux-i686/egg/genshi/output.py", line 61, in encode
  File "build/bdist.linux-i686/egg/genshi/output.py", line 311, in __call__
  File "build/bdist.linux-i686/egg/genshi/output.py", line 753, in __call__
  File "build/bdist.linux-i686/egg/genshi/output.py", line 592, in __call__
  File "build/bdist.linux-i686/egg/genshi/output.py", line 698, in __call__
  File "build/bdist.linux-i686/egg/genshi/output.py", line 532, in __call__
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
  File "/opt/trac2/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/web/chrome.py", line 779, in _strip_accesskeys
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
  File "/opt/trac2/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/web/chrome.py", line 768, in _generate
    for kind, data, pos in stream:
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 299, in _match
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 299, in _match
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 246, in _match
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 533, in _eval
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 496, in _eval
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 551, in _flatten
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
  File "build/bdist.linux-i686/egg/genshi/path.py", line 141, in _generate
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 235, in _strip
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 533, in _eval
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 496, in _eval
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 551, in _flatten
  File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
  File "build/bdist.linux-i686/egg/genshi/path.py", line 141, in _generate
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include
  File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 235, in _strip
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 520, in _eval
  File "build/bdist.linux-i686/egg/genshi/template/base.py", line 286, in _eval_expr
  File "build/bdist.linux-i686/egg/genshi/template/eval.py", line 180, in evaluate
  File "/opt/trac2/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/ticket/templates/report_view.html", line 120, in <Expression u"cell.value != 'None' and format_date(int(cell.value)) or '--'">
    <td class="date" py:attrs="td_attrs">${cell.value != 'None' and format_date(int(cell.value)) or '--'}
ValueError: invalid literal for int(): 

Change History (3)

comment:1 by Marshall Clow, 14 years ago

Resolution: worksforme
Status: newclosed

I tried this with three different browsers [ logged in and not logged in ] It worked fine for me.

If it's still failing for you, please reopen the bug.

comment:2 by Frank Mori Hess, 14 years ago

Resolution: worksforme
Status: closedreopened

It still fails for me, I tried with iceweasel (debian firefox) 2.0.0.16 and konqueror 3.5.5 on linux. Note I've only noticed the failure with report 14.

comment:3 by Marshall Clow, 14 years ago

Resolution: fixed
Status: reopenedclosed

Fixed. The big clue was found here http://trac.edgewall.org/ticket/6977.

Note: See TracTickets for help on using tickets.