Modify ↓
Opened 13 years ago
Closed 13 years ago
#9836 closed defect (wontfix)
Error starting plugin
Reported by: | javier | Owned by: | roadrunner |
---|---|---|---|
Priority: | normal | Component: | HudsonTracPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description (last modified by )
Hi,
My version of trac is Trac 0.10.4
Installed worked both from source and binary
However, as soon as I enable the plugin, trac gives then following error.
Thanks
Traceback (most recent call last): File "/var/lib/python-support/python2.5/trac/web/main.py", line 406, in dispatch_request dispatcher.dispatch(req) File "/var/lib/python-support/python2.5/trac/web/main.py", line 183, in dispatch req.perm = PermissionCache(self.env, req.authname) File "/var/lib/python-support/python2.5/trac/perm.py", line 263, in __init__ self.perms = PermissionSystem(env).get_user_permissions(username) File "/var/lib/python-support/python2.5/trac/perm.py", line 213, in get_user_permissions for requestor in self.requestors: File "/var/lib/python-support/python2.5/trac/core.py", line 55, in extensions return filter(None, [component.compmgr[cls] for cls in extensions]) File "/var/lib/python-support/python2.5/trac/core.py", line 182, in __getitem__ % (cls, e) TracError: Unable to instantiate component <class 'HudsonTrac.HudsonTracPlugin.HudsonTracPlugin'> (unicode_quote() takes exactly 1 argument (2 given))
Attachments (0)
Change History (4)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 13 years ago by
Status: | new → assigned |
---|
Can you upgrade to Trac 0.10.5? It appears that function started taking a second argument in 0.10.5.
Otherwise you can try patching the plugin yourself as follows: replace line 103
api_url = unicode_quote(self.job_url, '/%:@')
with
import urllib api_url = urllib.quote(self.job_url, '/%:@')
Because 0.10.4 is very old, and 0.10.5 has been out for very long too, I'm loath to make this change in the code.
comment:4 Changed 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
No further responses, so I'm assuming this workaround is sufficient.
Note: See
TracTickets for help on using
tickets.
python -V Python 2.5.1