I am trying to get Mercurial to host on IIS 7.5 (Win 7 x64) and continue to work with an error that I did not seem to fix.
I followed the tutorial by Jeremy Skiners: Mercurial on IIS7
Instead of hgwebdir, I use hgweb as I use Mercurial 1.7.2
I have python installed and running. I installed the IIS application for Mercurial in http: // localhost / hg โ in the directory c: \ inetpub \ wwwroot \ hg
I put the template directory in c: \ inetpub \ wwwroot \ hg I extracted the library.zip file in c: \ inetpub \ wwwroot \ hg
When I visited the site, I get an error โ File "C: \ inetpub \ wwwroot \ hg \ hgweb.cgi", line 15, from the mercurial importimport request; requestimport.enable () ImportError: no module named mercurial ".
While searching for this error, I found the following answers: stack overflow
Following the accepted answer, I changed my hgweb.cgi like this:
#!c:/python/python26/python.exe
After that, I still get the same error. I have no idea what else to do. Any help would be greatly appreciated.
Edi 1: Screenshot of c: \ inetpub \ wwwroot \ hg as requested:
python mercurial iis hgweb
thorkia Dec 04 '10 at 19:01 2010-12-04 19:01
source share