[Python-apps-team] Missing file "/usr/share/pyshared/mercurial/__init__.py"?
Martin Burger
mburger at netbeyond.de
Sun Nov 6 16:37:03 UTC 2011
Dear maintainers of package "mercurial-common":
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:
Traceback (most recent call last):
File "/home/mercurial/mburger/hgweb.cgi", line 15, in <module>
from mercurial import demandimport; demandimport.enable()
ImportError: No module named mercurial
Premature end of script headers: hgweb.cgi
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.
According to the filelist of package mercurial-common in squeeze
<http://packages.debian.org/squeeze/all/mercurial-common/filelist> 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 filelist of package
mercurial-common in lenny-backports
<http://packages.debian.org/lenny-backports/all/mercurial-common/filelist>
lists file /usr/share/python-support/mercurial-common/mercurial/__init__.py.
The issue describe above, is it some misunderstanding on my part, or is
it a bug?
Sincerely,
Martin Burger
--
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
mburger at netbeyond.de · http://www.netbeyond.de/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20111106/408d1bf7/attachment.html>
More information about the Python-apps-team
mailing list