Ticket #9836 (closed defect: wontfix)

Opened 1 year ago

Last modified 1 year ago

Error starting plugin

Reported by: javier Assigned to: roadrunner
Priority: normal Component: HudsonTracPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description (Last modified by rjollos)

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

Change History

02/20/12 15:49:56 changed by anonymous

python -V Python 2.5.1

02/20/12 16:25:06 changed by rjollos

  • description changed.

02/21/12 00:08:22 changed by roadrunner

  • status changed from new to 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.

03/26/12 08:21:07 changed by roadrunner

  • status changed from assigned to closed.
  • resolution set to wontfix.

No further responses, so I'm assuming this workaround is sufficient.


Add/Change #9836 (Error starting plugin)




Change Properties
Action