Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Error when viewing tickets after installing plugin #1

Unode opened this Issue · 4 comments

3 participants


Installed plugin in egg format into trac-project/plugins

Enabled plugin on admin interface.

Got the following error when viewing a pre-existing ticket

File "/usr/lib/python2.5/site-packages/trac/web/", line 450, in dispatch_request
File "/usr/lib/python2.5/site-packages/trac/web/", line 227, in dispatch
data, content_type)
File "/usr/lib/python2.5/site-packages/trac/web/", line 745, in render_template
stream |= self.filter_stream(req, method, filename, stream, data)
File "/usr/lib/pymodules/python2.5/genshi/", line 128, in __or

return Stream(_ensure(function(self)), serializer=self.serializer)
File "/usr/lib/python2.5/site-packages/trac/web/", line 848, in inner
File "build/bdist.linux-x86_64/egg/evidence/", line 31, in filter_streamFile "build/bdist.linux-x86_64/egg/evidence/", line 10, in ticket_finishFile "build/bdist.linux-x86_64/egg/evidence/", line 60, in ticket_estimate_timeFile "build/bdist.linux-x86_64/egg/evidence/", line 41, in get_estimation_historyFile "/usr/lib/python2.5/site-packages/trac/db/", line 64, in execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "/usr/lib/pymodules/python2.5/MySQLdb/", line 151, in execute
query = query % db.literal(args)

TypeError: int argument required

The system is:

Trac: 0.11.7
Python: 2.5.2 (r252:60911, Jan 24 2010, 18:02:01) [GCC 4.3.2]
setuptools: 0.6
MySQL: server: "5.0.51a-24+lenny3", client: "5.0.51a", thread-safe: 1
MySQLdb: 1.2.2
Genshi: 0.5.1
mod_wsgi: 2.5 (WSGIProcessGroup website WSGIApplicationGroup %{GLOBAL})
Pygments: 0.10


Forgot to add that I'm using the code as of commit 7f9dc71

diff --git a/evidence/ b/evidence/
index 1b06f6f..ad1d7f6 100644
--- a/evidence/
+++ b/evidence/
@@ -36,7 +36,7 @@ def get_estimation_history(db, owner):
                             t.status = 'closed' AND
                    = %s AND
                             tc.value > 0 AND
-                            time > %d
+                            time > %s
                         ORDER BY 
                    DESC""", [ owner, field, int(time.time())-129600 ] ) # 129600 - 90 дни

This one is also patched in the new version from today.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.