cgitb and Apache

Robert Hancock hancock.robert at
Tue Dec 23 06:32:25 CET 2008

I have a cgi running in my alpha environment and, of course,
everything works fine.  In beta, when I attempt to access a page via
our proxy, which works perfectly in alpha.  It attempts to call cgitb
but freezes for while and then exits.

The Apache log show:

[Mon Dec 22 23:49:25 2008] [error] [client] /usr/local/
python26/lib/python2.6/ DeprecationWarning:
BaseException.message has been deprecated as of Python 2.6

[Mon Dec 22 23:49:25 2008] [error] [client]   value =
pydoc.html.repr(getattr(evalue, name))

The source for cgitb at 173 is:

    if isinstance(evalue, BaseException):
        for name in dir(evalue):
            if name[:1] == '_': continue
      --->      value = pydoc.html.repr(getattr(evalue, name))
            exception.append('\n<br>%s%s =\n%s' % (indent, name,

    import traceback
    return head + ''.join(frames) + ''.join(exception) + '''

Any suggestions on how to deal with this?

More information about the Python-list mailing list