Boost C++ Libraries: Ticket #2078: ValueError: invalid literal for int(): https://svn.boost.org/trac10/ticket/2078 <h4 class="section" id="HowtoReproduce">How to Reproduce</h4> <p> While doing a GET operation on <code>/report/14</code>, Trac issued an internal error. </p> <p> <em>(please provide additional details here)</em> </p> <p> Request parameters: </p> <pre class="wiki">{'id': u'14'} </pre><p> User Agent was: <code>Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22</code> </p> <h4 class="section" id="SystemInformation">System Information</h4> <table class="wiki"> <tr><td> <strong>Trac</strong> </td><td> <code>0.11</code> </td></tr><tr><td> <strong>Python</strong> </td><td> <code>2.4.4 (#1, Jan 25 2007, 13:04:51) </code> <br /> <code>[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)]</code> </td></tr><tr><td> <strong>setuptools</strong> </td><td> <code>0.6c8</code> </td></tr><tr><td> <strong>SQLite</strong> </td><td> <code>3.5.4</code> </td></tr><tr><td> <strong>pysqlite</strong> </td><td> <code>2.4.1</code> </td></tr><tr><td> <strong>Genshi</strong> </td><td> <code>0.5</code> </td></tr><tr><td> <strong>Subversion</strong> </td><td> <code>1.4.2 (r22196)</code> </td></tr><tr><td> <strong>jQuery:</strong> </td><td> <code>1.2.3</code> </td></tr></table> <h4 class="section" id="PythonTraceback">Python Traceback</h4> <pre class="wiki">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 &lt;Expression u"cell.value != 'None' and format_date(int(cell.value)) or '--'"&gt; &lt;td class="date" py:attrs="td_attrs"&gt;${cell.value != 'None' and format_date(int(cell.value)) or '--'} ValueError: invalid literal for int(): </pre><p> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2078 Trac 1.4.3 Marshall Clow Mon, 18 Aug 2008 17:20:24 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2078#comment:1 https://svn.boost.org/trac10/ticket/2078#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> This was also reported as <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2088" title="#2088: Bugs: ValueError: invalid literal for int(): (closed: fixed)">#2088</a>. Since that bug report has more history, I'm marking this one as a duplicate, even though it was opened first. </p> Ticket