[Python-apps-team] Bug#486299: mercurial: missing python-beaker package dependency

John Eikenberry jae at zhar.net
Sun Jun 15 03:57:08 UTC 2008


Package: mercurial
Version: 1.0.1-1
Severity: normal


If you use 'hg serve' and view a file without having the python-beaker
package installed you get a long traceback (below) related to the syntax
highlighting of the web display.

Installing the python-beaker (0.9.4-1) package fixes the problem and allows
you to view the files.


Exception happened during processing of request from ('127.0.0.1', 59743)
Traceback (most recent call last):
  File "/usr/lib/python2.5/SocketServer.py", line 464, in
process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.5/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/var/lib/python-support/python2.5/mercurial/hgweb/server.py", line
45, in __init__
    BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args, **kargs)
  File "/usr/lib/python2.5/SocketServer.py", line 522, in __init__
    self.handle()
  File "/usr/lib/python2.5/BaseHTTPServer.py", line 318, in handle
    self.handle_one_request()
  File "/usr/lib/python2.5/BaseHTTPServer.py", line 310, in
handle_one_request
    method()
  File "/var/lib/python-support/python2.5/mercurial/hgweb/server.py", line
77, in do_GET
    self.do_POST()
  File "/var/lib/python-support/python2.5/mercurial/hgweb/server.py", line
68, in do_POST
    self.do_write()
  File "/var/lib/python-support/python2.5/mercurial/hgweb/server.py", line
61, in do_write
    self.do_hgweb()
  File "/var/lib/python-support/python2.5/mercurial/hgweb/server.py", line
125, in do_hgweb
    self.server.application(env, self._start_response)
  File "/var/lib/python-support/python2.5/mercurial/hgweb/hgweb_mod.py",
line 149, in __call__
    self.run_wsgi(req)
  File "/var/lib/python-support/python2.5/mercurial/hgweb/hgweb_mod.py",
line 252, in run_wsgi
    content = getattr(webcommands, cmd)(self, req, tmpl)
  File "/var/lib/python-support/python2.5/mercurial/hgweb/webcommands.py",
line 58, in file
    return web.filerevision(tmpl, web.filectx(req))
  File "/var/lib/python-support/python2.5/hgext/highlight.py", line 83, in
filerevision_highlight
    pygmentize(self, tmpl, fctx, 'fileline')
  File "/var/lib/python-support/python2.5/hgext/highlight.py", line 61, in
pygmentize
    encoding=util._encoding)
  File "/var/lib/python-support/python2.5/pygments/lexers/__init__.py",
line 150, in guess_lexer_for_filename
    for lexer in _iter_lexerclasses():
  File "/var/lib/python-support/python2.5/pygments/lexers/__init__.py",
line 127, in _iter_lexerclasses
    for lexer in find_plugin_lexers():
  File "/var/lib/python-support/python2.5/pygments/plugin.py", line 53, in
find_plugin_lexers
    yield entrypoint.load()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1911, in
load
    if require: self.require(env, installer)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1924, in
require
    working_set.resolve(self.dist.requires(self.extras),env,installer))
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 524, in
resolve
    raise DistributionNotFound(req)  # XXX put more info here
DistributionNotFound: Beaker



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mercurial depends on:
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  mercurial-common              1.0.1-1    Scalable distributed version contr
ii  python                        2.5.2-1    An interactive high-level object-o
ii  python-support                0.8.1      automated rebuilding support for P
ii  ucf                           3.007      Update Configuration File: preserv

Versions of packages mercurial recommends:
ii  rcs                           5.7-23     The GNU Revision Control System

-- no debconf information





More information about the Python-apps-team mailing list