Modify

Opened 14 years ago

#7421 new defect

HgTimeline does not work with mod_wsgi

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

Description

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

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Dirkjan Ochtman.

Add Comment


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

 
Note: See TracTickets for help on using tickets.