Modify

Opened 12 years ago

Closed 12 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 Ryan J Ollos)

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 12 years ago by anonymous

python -V Python 2.5.1

comment:2 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)

comment:3 Changed 12 years ago by roadrunner

Status: newassigned

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 12 years ago by roadrunner

Resolution: wontfix
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain roadrunner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.