hgwebdir.cgi on Windows

Jason Stewart jstewart at pobox.com
Fri Feb 15 10:37:13 CST 2008


I installed Mercurial from the "batteries included" installer and I'm 
trying to get the hgwebdir script running under LightTPD on Windows. I 
can get the first summary screen but when I click on the repo I'm trying 
to serve I get a traceback like:

Traceback (most recent call last):
  File "c:/progra~1/lighttpd/servers/hg/hgwebdir.cgi", line 51, in <module>
    wsgicgi.launch(wsgiapplication(make_web_app))
  File "mercurial\hgweb\wsgicgi.pyc", line 64, in launch
  File "mercurial\hgweb\request.pyc", line 18, in __call__
  File "mercurial\hgweb\request.pyc", line 36, in __init__
  File "mercurial\hgweb\hgwebdir_mod.pyc", line 250, in run_wsgi
  File "mercurial\hgweb\request.pyc", line 50, in respond
  File "mercurial\hgweb\request.pyc", line 50, in respond
  File "mercurial\hgweb\request.pyc", line 59, in respond
  File "mercurial\hgweb\common.pyc", line 26, in statusmessage
  File "mercurial\hgweb\common.pyc", line 21, in _statusmessage
  File "mercurial\demandimport.pyc", line 83, in _demandimport
  File "BaseHTTPServer.pyc", line 95, in <module>
  File "mercurial\demandimport.pyc", line 74, in __getattribute__
  File "mercurial\demandimport.pyc", line 46, in _load
  File "SocketServer.pyc", line 274, in <module>
    ���RK���RC���t���forkR@���RF���t���appendR
���R"���t���_exitR
���(���R���R���R ���RI���(����(����s���SocketServer.pycR
���ª��s
����
  File "SocketServer.pyc", line 317, in TCPServer
  File "mercurial\demandimport.pyc", line 74, in __getattribute__
  File "mercurial\demandimport.pyc", line 46, in _load
  File "socket.pyc", line 46, in <module>
    SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument)
  File "mercurial\demandimport.pyc", line 83, in _demandimport
  File "_socket.pyc", line 12, in <module>
  File "_socket.pyc", line 10, in __load
ImportError: DLL load failed: The specified module could not be found.



It looks like it can't load a DLL (socket?). Are there DLLs missing from 
the "batteries included" installer that are needed for the CGI scripts? 
Has anyone else done this before?

Thanks for any help.

Jason Stewart



More information about the Mercurial mailing list