Publishing using Apache and Windows
Giampaolo Fadel
giampaolo.fadel at cmz.it
Thu Jan 24 02:23:33 CST 2008
I'm getting started with Hg and I'm trying to publish my repositories
via http using Apache on a Windows XP machine.
(Windows XP SP2, Apache 2.2, Python 2.4, Mercurial 0.9.5)
I strictly followed (or so I think) the HgWebDirStepByStep using the
same directory structures.
But when I try to access to http://localhost/hg I have this error.
--------------------------------------------------------------------------------------------------------------------------------------
A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.
C:\Var\Hg\hgwebdir.cgi
44 # Alternatively you can pass a list of ('virtual/path', '/real/path')
tuples
45 # or use a dictionary with entries like 'virtual/path': '/real/path'
46
47 application = hgwebdir('hgweb.config')
48 wsgicgi.launch(application)
wsgicgi = <proxied module 'wsgicgi'>, wsgicgi.launch = <function
launch>, application = <mercurial.hgweb.hgwebdir_mod.hgwebdir object>
C:\Var\Hg\mercurial\hgweb\wsgicgi.pyc in
launch(application=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>)
TypeError: 'hgwebdir' object is not callable
args = ("'hgwebdir' object is not callable",)
--------------------------------------------------------------------------------------------------------------------------------------
The strange, in my opinion, is the path to wsgicgi.pyc file
(C:\Var\Hg\Mercurial\hgweb\wsgicgi.pyc), because the true path to this file
is C:\Mercurial\Lib\mercurial\hgweb. I modify the beginning of
hgwebdir.cgi according to this path
--------------------------------------------------------------------------------------------------------------------------------------
# adjust python path if not a system-wide install:
import sys
sys.path.insert(0, "C:/Mercurial/Lib")
--------------------------------------------------------------------------------------------------------------------------------------
but nothing change. Is any relation between the path to the file and
this settings?
I also tried to brutally copy the whole lib/mercurial directory in
C:\Var\Hg according to the path given by the error. In this case I have
a similar error with this line more:
��(���R
���R���t
mercurialR���R(���(���R���R���R
���R(���(����(����R���t���?���s���
Can someone help me?
Thanks Paolo
More information about the Mercurial
mailing list