--> --> -->
 
 
<type 'exceptions.RuntimeError'>
Python 2.5.2: /usr/bin/python
Thu Mar 11 14:24:45 2010

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

 /home/mercurial/scripts/hgwebdir.cgi in ()
   34 
   35 def make_web_app():
   36     return hgwebdir("hgweb.config")
   37 
   38 wsgicgi.launch(wsgiapplication(make_web_app))
wsgicgi = <module 'mercurial.hgweb.wsgicgi' from '/usr/lib/pymodules/python2.5/mercurial/hgweb/wsgicgi.pyc'>, wsgicgi.launch = <function launch at 0xb780e534>, wsgiapplication = <function wsgiapplication at 0xb785e924>, make_web_app = <function make_web_app at 0xb780e56c>
 /usr/lib/pymodules/python2.5/mercurial/hgweb/wsgicgi.py in launch(application=<function run_wsgi at 0xb780ec34>)
   66         return write
   67 
   68     content = application(environ, start_response)
   69     for chunk in content:
   70         write(chunk)
content undefined, application = <function run_wsgi at 0xb780ec34>, environ = {'DOCUMENT_ROOT': '/home/mercurial/mainsite', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'mercurial.intuxication.org', ...}, start_response = <function start_response at 0xb780e6f4>
 /usr/lib/pymodules/python2.5/mercurial/hgweb/request.py in run_wsgi(env={'DOCUMENT_ROOT': '/home/mercurial/mainsite', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'mercurial.intuxication.org', ...}, respond=<function start_response at 0xb780e6f4>)
  130     can and should now be used as a WSGI application.'''
  131     application = app_maker()
  132     def run_wsgi(env, respond):
  133         return application(env, respond)
  134     return run_wsgi
application = <mercurial.hgweb.hgwebdir_mod.hgwebdir object at 0xb780f80c>, env = {'DOCUMENT_ROOT': '/home/mercurial/mainsite', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'mercurial.intuxication.org', ...}, respond = <function start_response at 0xb780e6f4>
 /usr/lib/pymodules/python2.5/mercurial/hgweb/hgwebdir_mod.py in __call__(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object at 0xb780f80c>, env={'DOCUMENT_ROOT': '/home/mercurial/mainsite', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'mercurial.intuxication.org', ...}, respond=<function start_response at 0xb780e6f4>)
  102     def __call__(self, env, respond):
  103         req = wsgirequest(env, respond)
  104         return self.run_wsgi(req)
  105 
  106     def read_allowed(self, ui, req):
self = <mercurial.hgweb.hgwebdir_mod.hgwebdir object at 0xb780f80c>, self.run_wsgi = <bound method hgwebdir.run_wsgi of <mercurial.hgweb.hgwebdir_mod.hgwebdir object at 0xb780f80c>>, req = <mercurial.hgweb.request.wsgirequest object at 0xb780f96c>
 /usr/lib/pymodules/python2.5/mercurial/hgweb/hgwebdir_mod.py in run_wsgi(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object at 0xb780f80c>, req=<mercurial.hgweb.request.wsgirequest object at 0xb780f96c>)
  159                         try:
  160                             repo = hg.repository(self.ui, real)
  161                             return hgweb(repo).run_wsgi(req)
  162                         except IOError, inst:
  163                             msg = inst.strerror
global hgweb = <class 'mercurial.hgweb.hgweb_mod.hgweb'>, repo = <hgext/mq.mqrepo object at 0xb78164ec>, ).run_wsgi undefined, req = <mercurial.hgweb.request.wsgirequest object at 0xb780f96c>
 /usr/lib/pymodules/python2.5/mercurial/hgweb/hgweb_mod.py in run_wsgi(self=<mercurial.hgweb.hgweb_mod.hgweb object at 0x831276c>, req=<mercurial.hgweb.request.wsgirequest object at 0xb780f96c>)
  163 
  164         try:
  165             tmpl = self.templater(req)
  166             ctype = tmpl('mimetype', encoding=encoding.encoding)
  167             ctype = templater.stringify(ctype)
tmpl undefined, self = <mercurial.hgweb.hgweb_mod.hgweb object at 0x831276c>, self.templater = <bound method hgweb.templater of <mercurial.hgweb.hgweb_mod.hgweb object at 0x831276c>>, req = <mercurial.hgweb.request.wsgirequest object at 0xb780f96c>
 /usr/lib/pymodules/python2.5/mercurial/hgweb/hgweb_mod.py in templater(self=<mercurial.hgweb.hgweb_mod.hgweb object at 0x831276c>, req=<mercurial.hgweb.request.wsgirequest object at 0xb780f96c>)
  241         start = req.url[-1] == '?' and '&' or '?'
  242         sessionvars = webutil.sessionvars(vars, start)
  243         mapfile = templater.stylemap(style, self.templatepath)
  244 
  245         if not self.reponame:
mapfile undefined, global templater = <module 'mercurial.templater' from '/usr/lib/pymodules/python2.5/mercurial/templater.pyc'>, templater.stylemap = <function stylemap at 0xb78dfe64>, style = 'hgweb', self = <mercurial.hgweb.hgweb_mod.hgweb object at 0x831276c>, self.templatepath = None
 /usr/lib/pymodules/python2.5/mercurial/templater.py in stylemap(style='hgweb', paths=['/usr/share/mercurial/templates'])
  241             mapfile = os.path.join(path, location)
  242             if os.path.isfile(mapfile):
  243                 return mapfile
  244 
  245     raise RuntimeError("No hgweb templates found in %r" % paths)
builtin RuntimeError = <type 'exceptions.RuntimeError'>, paths = ['/usr/share/mercurial/templates']

<type 'exceptions.RuntimeError'>: No hgweb templates found in ['/usr/share/mercurial/templates']
      args = ("No hgweb templates found in ['/usr/share/mercurial/templates']",)
      message = "No hgweb templates found in ['/usr/share/mercurial/templates']"