Mercurial and hgweb on IIS 7.5 - python error?

I've been struggling with this same setup for the past week or so It looks to me like they have made some significant changes to how mercurial works in IIS recently, so the link above to Jeremy Skinners tutorial will be problematic for 1.7.2 This is a more recent link I found I had to do a couple things differently These instructions are for 1.7. X, if you're using 1.8. X, be sure to read Ethans comment below! I followed the instructions in the comments of /contrib/win32/hgwebdir_wsgi. Py Install Python 2.6.6 Add Python to system PATH (to make life easier) Install pywin32 v214 (using the Python installer, Important!

) (Note that this is built against python 2.6) Install isapi_wsgi download the mercurial source package Extract, Then Run python setup.Py --pure build_py -c -d . Build_ext -i build_mo --force python setup. Py --pure install --force Copy hgwebdir_wsgy.

Py from /contrib/win32 to the folder you want to host it from Create a file hgweb. Config in the folder you're going to host from. Add the contents paths yourRepoName = c:\yourRepoLocation Edit hgwebdir_wsgy.

Py to point the hgweb.config. Path_prefix is 0 if hg is the root of the website. If you're putting it in a vdir 1 deep, then it's 1, etc Run python hgwebdir_wsgy.

Py to create the isapi dll _hgwebdir_wsgy.dll. Console should print out "installation complete Create your app pool in IIS (no managed code) Create your website, with the folder set to the same folder as hgwebdir_wsgy. Py Add Handler of type Module, use "*" as the mapping, select _hgwebdir_wsgy.

Dll as the executable, select isapimodule as the type, Mercurial-ISAPI as the name (although name doesn't really matter) Edit feature permissions of the module to allow execute web. Config (for the previous 2 steps): system. WebServer> WebServer After all this, I was able to get it working One last thing, I did copy MFC71.

Dll to windows/system32, although I'm not sure it was necassary http://python.net/crew/skippy/win32 I think the main difference between what I've got here and what's on the above link is that I did the "pure python" mercurial install, Although I'm a complete python newbie so I'm not sure. Also I did the "python installs" for pywin and isapi_wsgi rather than the plain windows msi's.

I've been struggling with this same setup for the past week or so. It looks to me like they have made some significant changes to how mercurial works in IIS recently, so the link above to Jeremy Skinners tutorial will be problematic for 1.7.2 This is a more recent link I found I had to do a couple things differently. ****These instructions are for 1.7.X, if you're using 1.8. X, be sure to read Ethans comment below!

******** I followed the instructions in the comments of /contrib/win32/hgwebdir_wsgi.py. Install Python 2.6.6 Add Python to system PATH (to make life easier) Install pywin32 v214 (using the Python installer, Important! ) (Note that this is built against python 2.6) Install isapi_wsgi download the mercurial source package Extract, Then Run python setup.

Py --pure build_py -c -d . Build_ext -i build_mo --force python setup. Py --pure install --force Copy hgwebdir_wsgy.

Py from /contrib/win32 to the folder you want to host it from. Create a file hgweb. Config in the folder you're going to host from.

Add the contents paths yourRepoName = c:\yourRepoLocation Edit hgwebdir_wsgy. Py to point the hgweb.config. Path_prefix is 0 if hg is the root of the website.

If you're putting it in a vdir 1 deep, then it's 1, etc.Run python hgwebdir_wsgy. Py to create the isapi dll _hgwebdir_wsgy.dll. Console should print out "installation complete" Create your app pool in IIS (no managed code) Create your website, with the folder set to the same folder as hgwebdir_wsgy.

Py Add Handler of type Module, use "*" as the mapping, select _hgwebdir_wsgy. Dll as the executable, select isapimodule as the type, Mercurial-ISAPI as the name (although name doesn't really matter) Edit feature permissions of the module to allow execute. Web.

Config (for the previous 2 steps): After all this, I was able to get it working. One last thing, I did copy MFC71. Dll to windows/system32, although I'm not sure it was necassary http://python.net/crew/skippy/win32/ I think the main difference between what I've got here and what's on the above link is that I did the "pure python" mercurial install, Although I'm a complete python newbie so I'm not sure.

Also I did the "python installs" for pywin and isapi_wsgi rather than the plain windows msi's.

Everything works great until I get to this step: Run python hgwebdir_wsgy. Py to create the isapi dll _hgwebdir_wsgy.dll. Console should print out "installation complete" I get the following error: Traceback (most recent call last): File "hgwebdir_wsgi.

Py", line 61, in import isapi_wsgi ImportError: No module named isapi_wsgi – thorkia Dec 8 '10 at 0:04 Followed all your directions, and when I visit localhost/hg I get the directory doesn't list files error... Is there something else I should be doing? – thorkia Dec 8 '10 at 0:14 2 ive literally spent 6 hours trying to find a set of instructions that works. Why did I have to find this one last?

Good job! – Andrew Bullock Feb 4 at 13:00 3 FYI -- as of 1.8, the 'pure' version described at mercurial.selenic. Com/wiki/WindowsInstall no longer works for me.

I had to install MinGw, add c:\mingw\bin to the system path, then create a file C:\Python26\Lib\distutils\distutils. Cfg with buildcompiler=mingw32 After that, you can perform an 'easy_install ctypes' since 1.8 uses ctypes and not PyWin32 to make Win32 api calls. Then you can follow the 'standard' procedure outlined at the mercurial link above instead of the 'pure' variation.

– Ethan J. Brown Mar 2 at 18:00 1 I have written out current instructions here – Firegarden Software Jun 28 at 5:17.

Adam Boddington has written an updated installation description that works now: stackingcode.com/blog/2011/02/24/running....

I wrote out up to date instructions on how to setup a mercurial repository on IIS7 using the current versions of Mercurial (1.8. X) as well the current version of Python (2.7). This will work for you and I appreciate if you use it to vote the answer up (or down ;)).

Finally a tutorial that works with 64-bit windows server 2008, IIS 7, Python 2.7 and Mercurial 1.7.2+. Thank you! – Jason Down Aug 5 at 14:02.

I did have a lot of errors before. Uninstalled all phyton, pywin32, isapi_wsgi an dinstalled it like above. It worked as a breeze.Luc.

I found a small blog that covers this here win1337ist.wordpress.com/2011/06/22/inst....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions