在Windows Server 2008上设置Mercurial时出错

2024-04-29 01:36:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我想设置一个Mercurial SC服务器,并遵循这里的说明:http//stackoverflow.com/questions/818571/how-在iis上设置mercurial和hgwebdir

我已经检查了我的所有设置多次,似乎在完成配置后无法通过此错误。任何建议都会有帮助。谢谢您。

Server Error in Application "DEFAULT WEB SITE/HG"Internet Information Services 7.5

Error Summary
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "Traceback (most recent call last): File "C:\inetpub\hgcgi\hgwebdir.cgi", line 12, in <module> from mercurial import demandimport; demandimport.enable() ImportError: No module named mercurial ". Detailed Error InformationModule CgiModule
Notification ExecuteRequestHandler
Handler Python 2.5
**Error Code 0x00000001**
Requested URL http://localhost:80/hg/hgwebdir.cgi
Physical Path C:\inetpub\hgcgi\hgwebdir.cgi
Logon Method Anonymous
Logon User Anonymous
 Most likely causes:
The CGI process was shut down or terminated unexpectedly before it finished processing the request.
The CGI process has a flaw and does not return a complete set of HTTP headers.
 Things you can try:
Check the event logs on the system to see whether the CGI process is shutting down unexpectedly.
Troubleshoot the CGI application to determine why it is not sending a complete set of HTTP headers. 

Tags: ofthehttpnotiterrorprocessmercurial
1条回答
网友
1楼 · 发布于 2024-04-29 01:36:44

很长一行中的回溯表明,在PYTHON_路径中找不到mercurial。试着把hgwebdir.cgi从HgWebDirStopByStep页面按步骤5.1所示进行编辑。在

# adjust python path if not a system-wide install:
import sys
sys.path.insert(0, "c:/dev/Mercurial/lib")

当然,其中插入的path元素被调整为引用mercurial库文件所在的位置。在

相关问题 更多 >