<type 'exceptions.TypeError'>
Python 2.7.3: /usr/bin/python
Mon Mar 30 07:04:41 2015

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/lib/pymodules/python2.7/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
    556         """Runs the handler, flushes the streams, and ends the request."""
    557         try:
=>  558             protocolStatus, appStatus = self.server.handler(self)
    559         except:
    560             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>>
 /usr/lib/pymodules/python2.7/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
   1116         try:
   1117             try:
=> 1118                 result = self.application(environ, start_response)
   1119                 try:
   1120                     for data in result:
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <function script_name_fixer>, environ = {'DOCUMENT_ROOT': '/srv/wiki.upstart.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'upstart.ubuntu.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'HTTP_X_FORWARDED_FOR': '54.211.34.105', 'HTTP_X_FORWARDED_HOST': 'upstart.ubuntu.com', ...}, start_response = <function start_response>
 /srv/wiki.upstart.ubuntu.com/moin.fcgi in script_name_fixer(env={'DOCUMENT_ROOT': '/srv/wiki.upstart.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'upstart.ubuntu.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'HTTP_X_FORWARDED_FOR': '54.211.34.105', 'HTTP_X_FORWARDED_HOST': 'upstart.ubuntu.com', ...}, start=<function start_response>)
     64     def script_name_fixer(env, start):
     65         env['SCRIPT_NAME'] = fix_script_name
=>   66         return app(env, start)
     67     application = script_name_fixer
     68 
global app = <werkzeug.utils.SharedDataMiddleware object>, env = {'DOCUMENT_ROOT': '/srv/wiki.upstart.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'upstart.ubuntu.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'HTTP_X_FORWARDED_FOR': '54.211.34.105', 'HTTP_X_FORWARDED_HOST': 'upstart.ubuntu.com', ...}, start = <function start_response>
 /usr/lib/python2.7/dist-packages/MoinMoin/support/werkzeug/utils.py in __call__(self=<werkzeug.utils.SharedDataMiddleware object>, environ={'DOCUMENT_ROOT': '/srv/wiki.upstart.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'upstart.ubuntu.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'HTTP_X_FORWARDED_FOR': '54.211.34.105', 'HTTP_X_FORWARDED_HOST': 'upstart.ubuntu.com', ...}, start_response=<function start_response>)
    246                     break
    247         if file_loader is None or not self.is_allowed(real_filename):
=>  248             return self.app(environ, start_response)
    249 
    250         guessed_type = mimetypes.guess_type(real_filename)
self = <werkzeug.utils.SharedDataMiddleware object>, self.app = <MoinMoin.wsgiapp.Application object>, environ = {'DOCUMENT_ROOT': '/srv/wiki.upstart.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'upstart.ubuntu.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'HTTP_X_FORWARDED_FOR': '54.211.34.105', 'HTTP_X_FORWARDED_HOST': 'upstart.ubuntu.com', ...}, start_response = <function start_response>
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in __call__(self=<MoinMoin.wsgiapp.Application object>, environ={'DOCUMENT_ROOT': '/srv/wiki.upstart.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'upstart.ubuntu.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'HTTP_X_FORWARDED_FOR': '54.211.34.105', 'HTTP_X_FORWARDED_HOST': 'upstart.ubuntu.com', ...}, start_response=<function start_response>)
    280             request = self.Request(environ)
    281             context = init(request)
=>  282             response = run(context)
    283             context.clock.stop('total')
    284         except HTTPException, e:
response undefined, global run = <function run>, context = <AllContext ['AllContext']>
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in run(context=<AllContext ['AllContext']>)
     86                 response = xmlrpc.xmlrpc2(XMLRPCContext(request))
     87             else:
=>   88                 response = dispatch(request, context, action_name)
     89             context.cfg.session_service.finalize(context, context.session)
     90             return response
response undefined, global dispatch = <function dispatch>, request = <MoinMoin.wsgiapp.AppRequest object>, context = <AllContext ['AllContext']>, action_name = u'diff'
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in dispatch(request=<MoinMoin.wsgiapp.AppRequest object>, context=<AllContext ['AllContext']>, action_name=u'diff')
    134     # 2. handle action
    135     else:
=>  136         response = handle_action(context, pagename, action_name)
    137     if isinstance(response, Context):
    138         response = response.request
response undefined, global handle_action = <function handle_action>, context = <AllContext ['AllContext']>, pagename = u'MandatoryJobEnvironment', action_name = u'diff'
 /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in handle_action(context=<AllContext ['AllContext']>, pagename=u'MandatoryJobEnvironment', action_name=u'diff')
    193             context.page.send_page()
    194         else:
=>  195             handler(context.page.page_name, context)
    196 
    197     return context
handler = <function execute>, context = <AllContext ['AllContext']>, context.page = <MoinMoin.Page.Page object>, context.page.page_name = u'MandatoryJobEnvironment'
 /usr/lib/python2.7/dist-packages/MoinMoin/action/diff.py in execute(pagename=u'MandatoryJobEnvironment', request=<AllContext ['AllContext']>)
    231         from MoinMoin.util import diff_html
    232         request.write(f.rawHTML(diff_html.diff(request, oldpage.get_raw_body(), newpage.get_raw_body(), old_top=rev_info_old_html, new_top=rev_info_new_html, old_top_class="diff-info", new_top_class="diff-info")))
=>  233         newpage.send_page(count_hit=0, content_only=1, content_id="content-below-diff")
    234     else:
    235         request.write(f.rawHTML('<table class="diff"><tr><td class="diff-info">%s</td><td class="diff-info">%s</td></tr></table>' % (rev_info_old_html, rev_info_new_html)))
newpage = <MoinMoin.Page.Page object>, newpage.send_page = <bound method Page.send_page of <MoinMoin.Page.Page object>>, count_hit undefined, content_only undefined, content_id undefined
 /usr/lib/python2.7/dist-packages/MoinMoin/Page.py in send_page(self=<MoinMoin.Page.Page object>, **keywords={'content_id': 'content-below-diff', 'content_only': 1, 'count_hit': 0})
   1296                                    format_args=pi['formatargs'],
   1297                                    do_cache=do_cache,
=> 1298                                    start_line=pi['lines'])
   1299 
   1300             # check for pending footnotes
start_line undefined, pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
 /usr/lib/python2.7/dist-packages/MoinMoin/Page.py in send_page_content(self=<MoinMoin.Page.Page object>, request=<AllContext ['AllContext']>, body=u"''Please check the status of this specification ...t uses itself on its own.\n\n----\n . CategorySpec \n", format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})
   1390             try:
   1391                 code = self.loadCache(request)
=> 1392                 self.execute(request, parser, code)
   1393             except Exception, e:
   1394                 if not is_cache_exception(e):
self = <MoinMoin.Page.Page object>, self.execute = <bound method Page.execute of <MoinMoin.Page.Page object>>, request = <AllContext ['AllContext']>, parser = <MoinMoin.parser.text_moin_wiki.Parser instance>, code = <code object <module> at 0x7fe49c025e30, file "MandatoryJobEnvironment", line 2>
 /usr/lib/python2.7/dist-packages/MoinMoin/Page.py in execute(self=<MoinMoin.Page.Page object>, request=<AllContext ['AllContext']>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>, code=<code object <module> at 0x7fe49c025e30, file "MandatoryJobEnvironment", line 2>)
   1421                 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
   1422             try:
=> 1423                 exec code
   1424             except "CacheNeedsUpdate": # convert the exception
   1425                 raise Exception("CacheNeedsUpdate")
code = <code object <module> at 0x7fe49c025e30, file "MandatoryJobEnvironment", line 2>
 /srv/wiki.upstart.ubuntu.com/MandatoryJobEnvironment in ()

<type 'exceptions.TypeError'>: 'dict' object is not callable
      args = ("'dict' object is not callable",)
      message = "'dict' object is not callable"