Ubuntu Hardy 下的 Mercurial http 接口。不起作用
我正在尝试在 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")
但它无论如何都不起作用。
我该怎么办?
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用的是 Mercurial 的哪个版本?如果您仍在使用 ubuntu 从启动板向 PPA 提供更新的 1.0.x:https://launchpad.net/~mercurial-ppa/+archive/stable-snapshots
在 1.6 中,hgwebdir 已重命名为“hgweb”,这将稍微改变您的配置。
另外你用什么来启动 wsgi 的东西?阿帕奇?
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?