Opened 6 years ago

#7421 new defect

HgTimeline does not work with mod_wsgi

Reported by: lgunsch@… Owned by: djc
Priority: normal Component: HgTimelinePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


Got this error while installing the plugin on a site with mod_wsgi using trac.wsgi.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/", line 339, in send_error
  File "/usr/lib/python2.5/site-packages/trac/web/", line 684, in render_template
    data = self.populate_data(req, data)
  File "/usr/lib/python2.5/site-packages/trac/web/", line 592, in populate_data
  File "/usr/lib/python2.5/site-packages/trac/web/", line 169, in __getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.5/site-packages/trac/web/", line 460, in prepare_request
    for category, name, text in contributor.get_navigation_items(req):
  File "/usr/lib/python2.5/site-packages/trac/ticket/", line 151, in get_navigation_items
    if 'TICKET_CREATE' in req.perm:
  File "/usr/lib/python2.5/site-packages/trac/", line 523, in has_permission
    return self._has_permission(action, resource)
  File "/usr/lib/python2.5/site-packages/trac/", line 537, in _has_permission
    check_permission(action, perm.username, resource, perm)
  File "/usr/lib/python2.5/site-packages/trac/", line 424, in check_permission
  File "/usr/lib/python2.5/site-packages/trac/", line 282, in check_permission
  File "/usr/lib/python2.5/site-packages/trac/", line 343, in get_user_permissions
    for requestor in self.requestors:
  File "/usr/lib/python2.5/site-packages/trac/", line 67, in extensions
    return filter(None, [component.compmgr[cls] for cls in extensions])
  File "/usr/lib/python2.5/site-packages/trac/", line 204, in __getitem__
    component = cls(self)
  File "/usr/lib/python2.5/site-packages/trac/", line 108, in maybe_init
  File "build/bdist.linux-x86_64/egg/hgtl/", line 51, in __init__
    self.ui = tracui()
  File "build/bdist.linux-x86_64/egg/hgtl/", line 32, in __init__
    ui.ui.__init__(self, base)
  File "/var/lib/python-support/python2.5/mercurial/", line 50, in __init__
  File "/var/lib/python-support/python2.5/mercurial/", line 166, in readconfig
  File "/var/lib/python-support/python2.5/mercurial/", line 222, in fixconfig
    self.interactive = self.isatty()
  File "/var/lib/python-support/python2.5/mercurial/", line 74, in isatty
    ui._isatty = sys.stdin.isatty()
IOError: sys.stdin access restricted by mod_wsgi

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

as new The owner will remain djc.

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

Note: See TracTickets for help on using tickets.