Modify

Opened 2 years ago

Closed 2 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 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 (0)

Change History (4)

comment:1 Changed 2 years ago by anonymous

python -V
Python 2.5.1

comment:2 Changed 2 years ago by rjollos

  • Description modified (diff)

comment:3 Changed 2 years ago 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.

comment:4 Changed 2 years ago by roadrunner

  • Resolution set to wontfix
  • Status changed from assigned to closed

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from roadrunner. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.