Windows 2003上最新的Mercurial和IIS

Windows 2003上最新的Mercurial和IIS,iis,mercurial,windows-server-2003,tortoisehg,Iis,Mercurial,Windows Server 2003,Tortoisehg,我无法让它工作:( 到目前为止我所做的: 已安装: -陆龟hg-2.1.3-hg-1.9.2-x86.msi -python-2.7.2.msi -mercurial-1.9.2-x86.msi 我的路径变量包含:D:\ProgramFiles\TortoiseHg\;D:\Python27 创建了D:\MercurialWeb\并在IIS中设置它以运行测试python cgi脚本 在中,将模板目录从tortoiseHg复制到该web目录,并提取了库zip 我的hgweb.cgi如下所示: #!

我无法让它工作:(

到目前为止我所做的:

已安装:

-陆龟hg-2.1.3-hg-1.9.2-x86.msi

-python-2.7.2.msi

-mercurial-1.9.2-x86.msi

我的路径变量包含:D:\ProgramFiles\TortoiseHg\;D:\Python27

创建了D:\MercurialWeb\并在IIS中设置它以运行测试python cgi脚本

在中,将模板目录从tortoiseHg复制到该web目录,并提取了库zip

我的hgweb.cgi如下所示:

#!/usr/bin/env python
#
# An example hgweb CGI script, edit as necessary
# See also http://mercurial.selenic.com/wiki/PublishingRepositories

# Path to repo or hgweb config to serve (see 'hg help hgweb')
config = "/path/to/repo/or/config"

# Uncomment and adjust if Mercurial is not installed system-wide:
#import sys; sys.path.insert(0, "/path/to/python/lib")

# Uncomment to send python tracebacks to the browser if an error occurs:
import cgitb; cgitb.enable()

from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb import hgweb, wsgicgi
application = hgweb(config)
wsgicgi.launch(application)
hgweb.config

[paths]
MySourceCode = D:\MercurialRepos\**
[web]
style = monoblue
但如果我打开网站,我会得到:

<type 'exceptions.ImportError'>: No module named mercurial 
      args = ('No module named mercurial',) 
      message = 'No module named mercurial'
:没有名为mercurial的模块
args=('No module named mercurial',)
消息='没有名为mercurial的模块'

关于在Windows Server上设置Mercurial,有许多不同的博客,其中大多数都指定了特定的Mercurial版本(我见过的最高版本是1.7)。

看看这个博客是否有帮助:

谢谢你的帖子。我尝试了这个教程和其他教程,但最后又出现了一些python错误。我放弃了它,将继续使用我的ubuntu服务器,它运行良好,在15分钟内就安装好了;)