HTTP 500 error since HG 1.9/1.9.1 - was fine previously (until HG 1.8.4)

Adrian Buehlmann adrian at cadifra.com
Thu Aug 18 04:58:10 UTC 2011


On 2011-08-17 18:20, Lionel wrote:
> Hello all,
> 
>  
> 
> I’ve been happily running HG (yes, HG definitively rocks!!) on IIS via
> isapi_wsgi until HG version 1.8.4. Yet, since v1.9, I get a http 500
> error when connecting to the server. Can anybody help me? I wonder what
> has changed and what may be breaking between 1.8.x and 1.9.x.
> 
>  
> 
> Many thanks in advance! (please note I’ve nearly no knowledge in Python)
> 
>  
> 
> Lionel
> 
>  
> 
>  
> 
> My config:
> 
> - Win 2008R2 (so 64bit)
> 
> - IIS7 with IS 6.0 Management Compatibility for IIS7
> 
> - python2.7.1 64 bit (coming from pywin32-216.win-amd64-py2.7.exe).
> Python’s dir is in windows’ PATH.

I just tried installing pywin32-216.win-amd64-py2.7.exe on a fresh naked
install of Windows 7 x64 and it told me that it requires Python as a prerequisite.

So, near as I can tell, Python 2.7 does *not* come from pywin32-216.win-amd64-py2.7.exe.

I then installed python-2.7.2.amd64.msi, followed by installing
pywin32-216.win-amd64-py2.7.exe

Then I tried

  C:\Users\adi>C:\Python27\python.exe
  Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import ctypes, ctypes.util
  >>> ctypes.util.find_msvcrt()
  'msvcr90.dll'
  >>> ctypes.PyDLL(ctypes.util.find_msvcrt())
  <PyDLL 'msvcr90.dll', handle 70060000 at 21e2080>
  >>>

Does that work on your computer as well?

As a side note, starting with Mercurial 1.8 installing pywin32 is not needed any
more.

The relevant change from Mercurial 1.8.x to 1.9.x for your case is that the pure
1.9 requires a working ctypes module from Python (ctypes is included in Python since
version 2.5).



More information about the Mercurial mailing list