I am trying to get Mercurial to host on IIS 7.5 (Win 7 x64) and keep running into an error I cant seem to fix.
I have followed Jeremy Skinners tutorial here: Mercurial on IIS7
Instead of hgwebdir, I use hgweb as I am using Mercurial 1.7.2
I have python installed and working. I set up a IIS application for Mercurial at http://localhost/hg -> in directory c:\inetpub\wwwroot\hg
I placed the templates directory into c:\inetpub\wwwroot\hg I extracted the library.zip file into c:\inetpub\wwwroot\hg
When I visited the site, I get an error -> File "C:\inetpub\wwwroot\hg\hgweb.cgi", line 15, in from mercurial import demandimport; demandimport.enable() ImportError: No module named mercurial ".
When searching for this error, I found the following answers: https://stackoverflow.com/questions/2123798/
Following the accepted answer, I changed my hgweb.cgi to look like this:
#!c:/python/python26/python.exe
#
# An example hgweb CGI script, edit as necessary
# See also https://www.mercurial-scm.org/wiki/PublishingRepositories
# Path to repo or hgweb config to serve (see 'hg help hgweb')
config = "/path/to/repo/or/config"
# Uncomment and adjust if Mercurial is not installed system-wide:
import sys; sys.path.insert(0, "c:\inetpub\wwwroot\hg")
# Uncomment to send python tracebacks to the browser if an error occurs:
#import cgitb; cgitb.enable()
from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb import hgweb, wsgicgi
application = hgweb('c:\inetpub\wwwroot\hg\hgweb.config')
wsgicgi.launch(application)
After doing that, I still get the same error. I have no idea what else to do. Any help would be greatly appreciated.
Edi 1: Screen shot of c:\inetpub\wwwroot\hg as per request: