2011-09-28 4 views
0

에 의욕 및 IIS 최신 나는 그것이 작동하지 않는 내가 지금까지 무슨 짓을 는 윈도우 2003

:(

:

설치 :

-tortoisehg-2.1.3-HG-1.9. 2 x86.msi

-python-2.7.2.msi

-mercurial-1.9.2-x86.msi

내 PATH Variab 파일 내용 : D : \ Program Files \ TortoiseHg \; D : \ Python27;

만든 D : \ MercurialWeb \ 테스트 Python CGI 스크립트를 실행하도록 IIS에서 설정합니다.

에서 템플릿 디렉토리를 tortoiseHg에서 해당 웹 디렉토리로 복사하고 라이브러리 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' 

답변

0

이가 있습니다 Windows Server에서 Mercurial을 설정하는 것에 대한 여러 블로그의 내용을 담고 있으며, 대부분은 특정 Mercurial 버전을 지정합니다. 1.7).
이 블로그가 도움이되는지보기 : http://hyperionchaos.net/blog

+0

게시물 주셔서 감사합니다. 이 튜토리얼과 다른 튜토리얼을 시도했지만 더 많은 파이썬 오류가 발생했습니다. 나는 그것을 포기하고 잘 실행되고 15 분 안에 설정되었다 내 우분투 서버와 스틱 것입니다;) – kannix