【发布时间】:2010-08-26 13:55:01
【问题描述】:
我正在尝试在 Ubuntu 8.04 下部署 mercurial。 Mercurial 软件包已正确安装,但是当我配置 http 接口时,我总是收到 500 错误。
我启用了将调试信息输出到 error.log 并得到:
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
我的桌面是 Ubuntu 10.04,家庭服务器是 ubuntu 9.10,配置是一样的,就像一个魅力。
我编译了 python 2.6,并在 hgwebdir.wsgi 中放置了这个库的路径 -
import sys
sys.path.insert(0, "/path/to/python/lib")
但无论如何它都不起作用。
我该怎么办??
谢谢。
【问题讨论】: