[issue3035] incompatibility between progress extension and mod_wsgi for hgwebdir.wsgi

renaud bugs at mercurial.selenic.com
Tue Oct 4 07:13:15 CDT 2011


New submission from renaud <rndblnch at gmail.com>:

serving hgwebdir with apache/mod_wsgi leads to an internal server error when
the progress extension is activated system wide (in my .hgrc).
below is the relevant part of apache error.log, the relevant part is this one:
    File "/Library/Python/2.6/site-packages/hgext/progress.py", line 180, in
uisetup
        if ((sys.stderr.isatty() or ui.configbool('progress', 'assume-tty'))
    AttributeError: 'mod_wsgi.Log' object has no attribute 'isatty'

[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1] mod_wsgi (pid=73):
Exception occurred processing WSGI script
'/Users/blanch/home/web/wsgi-bin/hg/hgwebdir.wsgi'.
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1] Traceback (most recent
call last):
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]   File
"/Library/Python/2.6/site-packages/mercurial/util.py", line 231, in
increasingchunks
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]     for chunk in source:
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]   File
"/Library/Python/2.6/site-packages/mercurial/templater.py", line 60, in process
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]     item = iters[0].next()
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]   File
"/Library/Python/2.6/site-packages/mercurial/templater.py", line 79, in _format
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]     for i in v:
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]   File
"/Library/Python/2.6/site-packages/mercurial/hgweb/hgwebdir_mod.py", line
236, in entries
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]     r =
hg.repository(self.ui, path)
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]   File
"/Library/Python/2.6/site-packages/mercurial/hg.py", line 87, in repository
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]     hook(ui, repo)
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]   File
"/Library/Python/2.6/site-packages/hgext/progress.py", line 192, in reposetup
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]     uisetup(repo.ui)
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]   File
"/Library/Python/2.6/site-packages/hgext/progress.py", line 180, in uisetup
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1]     if
((sys.stderr.isatty() or ui.configbool('progress', 'assume-tty'))
[Tue Oct 04 13:59:54 2011] [error] [client 127.0.0.1] AttributeError:
'mod_wsgi.Log' object has no attribute 'isatty'

----------
messages: 17562
nosy: rndblnch
priority: bug
status: unread
title: incompatibility between progress extension and mod_wsgi for hgwebdir.wsgi

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3035>
____________________________________________________


More information about the Mercurial-devel mailing list