Mercurial / IIS / No module named osutil

I am trying to start Mercurial using "hgweb.cgi" in IIS 7.5. Everything is set up for me according to http://www.jeremyskinner.co.uk/mercurial-on-iis7/ , except that I installed python 2.6 and Mercurial 1.7.3. When I try to switch to the hgweb.cgi script, I get the following error:

"There is no module named osutil"

After a bit of searching, I found that I need to install python-dev packages, but this seems to only apply to unix. Is there anything else I need for this to work in windows?

Thanks.

Note that I tried the mercurial / library.zip binaries for both HgTortoise and the Mercurial x86 installer, available here:

https://www.mercurial-scm.org/downloads

(Mercurial 1.7.3 Inno Setup installer - x86 Windows - does not require administrator rights)

+7
source share
3 answers

I had the same problem trying to recreate the HgWeb server with Mercurial 2.1.1. I sent the question to the Mercurial mailing list.

Since Python is required for HgWeb, you should get Mercurial as a Python module. Fortunately, Mercurial people supply one ; he marked py2.6 description

installs the Mercurial source as Python modules and therefore requires the installation of Python 2.6. This is recommended for hgweb settings

As soon as I started this installer, HgWeb started working.

+1
source

Considering the available downloads and the version mentioned in the question, it looks like you installed TortoiseHg 1.1.8 with Mercurial 1.7.3 , which some python packages are probably missing.

0
source

I myself studied this problem (except that I am trying to run Mercurial through ISAPI) and 1.7.1 appears - the latest version that works with IIS due to dependency problems with msvcr90.dll in all later versions, including the recently released 1.8.2.

See this question , which ultimately seems to be caused by this still open 1 year old issue with Python .
Judging by the conversation, the correction is not easy. I don't know any workarounds, so I am forced to use 1.7.1 in the meantime.

Edit: CGI works with 1.8.2, so the problem above seems to affect only running Mercurial through ISAPI.

0
source

All Articles