Note that there are some explanatory texts on larger screens.

plurals
  1. POMercurial and hgweb on IIS 7.5 - python error
    primarykey
    data
    text
    <p>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.</p> <p>I have followed Jeremy Skinners tutorial here: <a href="http://www.jeremyskinner.co.uk/mercurial-on-iis7/" rel="nofollow noreferrer">Mercurial on IIS7</a></p> <p>Instead of hgwebdir, I use hgweb as I am using Mercurial 1.7.2</p> <p>I have python installed and working. I set up a IIS application for Mercurial at <a href="http://localhost/hg" rel="nofollow noreferrer">http://localhost/hg</a> -> in directory c:\inetpub\wwwroot\hg</p> <p>I placed the templates directory into c:\inetpub\wwwroot\hg I extracted the library.zip file into c:\inetpub\wwwroot\hg</p> <p>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 ".</p> <p>When searching for this error, I found the following answers: <a href="https://stackoverflow.com/questions/2123798/error-setting-up-mercurial-on-windows-server-2008">https://stackoverflow.com/questions/2123798/</a></p> <p>Following the accepted answer, I changed my hgweb.cgi to look like this:</p> <pre><code>#!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) </code></pre> <p>After doing that, I still get the same error. I have no idea what else to do. Any help would be greatly appreciated.</p> <p>Edi 1: Screen shot of c:\inetpub\wwwroot\hg as per request: <img src="https://i.stack.imgur.com/AdKF1.png" alt="My Hg directory"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload