开发者

Mercurial http interface under Ubuntu Hardy. Doesn't work

I am trying to deploy mercurial under Ubuntu 8.04. Mercurial packages were installed correctly, but when I've configured http interface I always get 500 error.

I enabled outputting debug info to error.log and got:

mod_wsgi (pid=21159): Exception occurred within WSGI script
'/home/hg/rep/hgwebdir.wsgi'.
Traceback (most recent call last):
File "/home/hg/rep/hgwebdir.wsgi", line 67, in <module>
wsgicgi.launch(application)
File "/var/lib/python-support/python2.5/mercurial/hgweb/wsgicgi.py", line开发者_开发问答 64, in launch
result = application(environ, start_response)
TypeError: 'hgwebdir' object is not callable

My desktop is with Ubuntu 10.04, and home server with ubuntu 9.10, and configuration is the same, and works like a charm.

I compiled python 2.6, and in hgwebdir.wsgi put path to this library -

 import sys
 sys.path.insert(0, "/path/to/python/lib")

But it doesn't work anyways.

What shall I do??

Thanks.


Which version of mercurial are you using? If you're still using the 1.0.x that ubuntu ships update to the PPAs from launchpad: https://launchpad.net/~mercurial-ppa/+archive/stable-snapshots

In 1.6 hgwebdir has been renamed to just 'hgweb' which will alter your config slightly.

Also what are you using the launch the wsgi stuff? Apache?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜