<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear maintainers of package "mercurial-common":<br>
    <br>
    I spent several hours investigating why serving hgweb.cgi from
    package mercurial-common/squeeze 1.6.4-1 via Apache results in an
    internal server error and the following message in file
    /var/log/apache2/error.log:<br>
    <br>
    <tt>Traceback (most recent call last):<br>
        File "/home/mercurial/mburger/hgweb.cgi", line 15, in
      <module><br>
          from mercurial import demandimport; demandimport.enable()<br>
      ImportError: No module named mercurial<br>
      Premature end of script headers: hgweb.cgi</tt><br>
    <br>
    It seems that empty file __init__.py is missing in directory
    /usr/share/pyshared/mercurial. After touch'ing that file and
    providing a corresponding symlink in directory
    /usr/lib/pymodules/python2.6/mercurial, Apache is able to serve
    hgweb.cgi as expected.<br>
    <br>
    According to the <a
      href="http://packages.debian.org/squeeze/all/mercurial-common/filelist">filelist
      of package mercurial-common in squeeze</a> that file is not
    included in the package. I moved my Mercurial repositories from a
    server running Debian Lenny with backports where Apache could serve
    hgwebdir.cgi just fine. Lo and behold - the <a
href="http://packages.debian.org/lenny-backports/all/mercurial-common/filelist">filelist
      of package mercurial-common in lenny-backports</a> lists file
    /usr/share/python-support/mercurial-common/mercurial/__init__.py.<br>
    <br>
    The issue describe above, is it some misunderstanding on my part, or
    is it a bug?<br>
    <br>
    Sincerely,<br>
    <br>
    Martin Burger<br>
    <pre class="moz-signature" cols="72">-- 
Dr. Martin Burger

netbeyond
Daniel Barth & Martin Burger GbR

Tel. +49 (0)681 3 72 08 49 61 · Mobil +49 (0)179 9 21 32 05
<a class="moz-txt-link-abbreviated" href="mailto:mburger@netbeyond.de">mburger@netbeyond.de</a> · <a class="moz-txt-link-freetext" href="http://www.netbeyond.de/">http://www.netbeyond.de/</a>
</pre>
  </body>
</html>