Mercurial 1.7.2+ higher source packages cause IIS7 / isapi-wsgi (hgwebdir_wsgi) to fail

Ethan Brown ethan_j_brown at hotmail.com
Fri Jan 7 16:46:38 CST 2011


The solution is to download the source from
http://mercurial.selenic.com/release and extract it to a directory where a
'pure' Python version can be installed from.  Steps described here:
http://mercurial.selenic.com/wiki/WindowsInstall


python setup.py --pure build_py -c -d . build_ext -i build_mo --force
python setup.py --pure install --force

It would appear that something changed from 1.7.1 to 1.7.2 and later that
causes installation via mercurial-1.7.2.win32-py2.6.exe to longer function
properly when using Isapi-Wsgi under IIS.

Unfortunately, I don't know enough about Python (or have the time at the
moment) to figure out the root cause.


On Fri, Jan 7, 2011 at 3:16 PM, Ethan Brown <ethan_j_brown at hotmail.com>wrote:

> I have Mercurial installed under IIS7 on Windows 2008 SR2 -- have been
> using various 1.6 versions and now currently running 1.7.1
>
> I have more or less installed via this guide:
>
> http://www.eworldui.net/blog/post/2010/04/08/Setting-up-Mercurial-server-in-IIS7-using-a-ISAPI-module.aspx
>
> Python 2.6.6
> PyWin32 Build 214 (7-8-2009)
> Isapi-Wsgi 0.4.2 (4-12-2010)
>
> Mercurial source packages from here:
> https://bitbucket.org/tortoisehg/thg-winbuild/downloads/
> In my case, mercurial-1.7.1.win32-py2.6.exe
>
> When 1.7.2 came out last month, I tried to upgrade via the source package
> download and it caused isapi_wsgi to fail immediately.  If I downgrade the
> source package to 1.7.1, I'm golden.
>
> I figured it was an anomaly, that someone would report it, and it would be
> fixed for 1.7.3.  I tried 1.7.3 and same issue.
>
> Event viewer has -- Failed to import callback module 'hgwebdir_wsgi'
>
>
> I'm not a Python expert, so I figured I would ask if anyone has any ideas?
>
>
> Thanks!
>
> -e
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110107/148c4be6/attachment.htm>


More information about the Mercurial-devel mailing list