Setting up hgwebdir with Apache and WindowsXP

Benoît Allard benoit at aeteurope.nl
Wed Mar 25 03:50:33 CDT 2009


So far, your problem is there:

Traceback (most recent call last):
File "D:/xampp/htdocs/hgwebdir.cgi", line 68, in <module>
   wsgicgi.launch(application)
File "mercurial\\hgweb\\wsgicgi.pyc", line 69, in launch
File "mercurial\\util.pyc", line 319, in increasingchunks
File "mercurial\\templater.pyc", line 148, in expand
File "mercurial\\templater.pyc", line 124, in _process
File "mercurial\\hgweb\\webcommands.pyc", line 193, in changelist
File "mercurial\\hgweb\\webutil.pyc", line 88, in nodetagsdict
File "mercurial\\localrepo.pyc", line 363, in nodetags
File "mercurial\\localrepo.pyc", line 300, in tags
File "mercurial\\util.pyc", line 1625, in __call__
File "mercurial\\util_win32.pyc", line 293, in __init__
File "mercurial\\demandimport.pyc", line 75, in __getattribute__
File "mercurial\\demandimport.pyc", line 47, in _load
  ImportError: No module named pywintypes

And more substantially, the last line.

There has been a fix two weeks ago to correct a similar problem
http://hg.xavamedia.nl/mercurial/crew/rev/2bc14da14992

But I don't know enough of demandimport to know if you're experiencing 
the same problem.

Maybe you can try with a recent crew.

Daniel Schuster wrote:
> Hi all,
> 
>  
> 
> I tried a few hours to get Mercurial run with my apache (delivered in a 
> XAMPP package) with Windows XP, but unfortunately all the published 
> information didn’t lead me to a solution.
> 
>  
> 
> Here are the steps I did so far:
> 
>  
> 
> 1.     Installation of Mercurial under 
>                                       “D:/Mercurial”
> 
> 2.     Installation of Python 2.5, 
> path:                                    “D:/Python25”
> 
> 3.     Unzipped “library.zip” so it’s accessible now through     
> “D:/Mercurial/lib”
> 
> 4.     Downloaded hgwebdir.cgi into                                     
> “D:/xampp/htdocs”
> 
> 5.     Modified the hgwebdir (attachment hgwebdir.cgi):
> 
> a.     Set the path to python:                                    
> “D:/Python25/python.exe”
> 
> b.    Set the path to the lib:                                     
> “D:/Mercurial/lib”
> 
> 6.     Created hgweb.config (att. hgweb.config) inside           
> “D:/xampp/htdocs”
> 
> 7.     Modified hgweb.config:
> 
> [paths]
> 
> my-hello = d:/xampp/htdocs/my-hello
> 
> 8.     Copied the repository “my-hello” to                              
> “D:/xampp/htdocs”
> 
> 9.     Modification of my Apache config-file:
> 
> ScriptAliasMatch ^/hg(.*) d:/xampp/htdocs/hgwebdir.cgi$1
> 
> <Directory "d:/xampp/htdocs">
> 
>    Options ExecCGI FollowSymLinks
> 
>    AllowOverride None
> 
> </Directory>
> 
> As a result I receive a listing showing my repository “my-hello”  
> (repo-browser.gif) – when I click the link to show the repository I get 
> the picture shown in repo-detail.gif
> 
> A further click on Graph or log leads me to an 500 internal Server 
> Error. I attached the error log of apache, too (error.log).
> 
>  
> 
> My questions:
> 
>             What can be the reason for the errors reported in error.log?
> 
>             How can I get things working?
> 
>  
> 
> Thank you very much for your help – I read a lot before writing this 
> mail without success – you’re my last hope.
> 
> WBR
> Daniel
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial


More information about the Mercurial mailing list