在II上设置Mercurial时出现缺少模块错误

2024-10-02 00:41:28 发布

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

我跟随theseinstructions在IIS上为Mercurial存储库提供服务。运行hgweb.cgi脚本(在命令提示符下重新创建)时出现以下错误:

Traceback (most recent call last): File "hgweb.py", line 18, in application = hgweb(config) File "mercurial\hgweb__init__.pyc", line 40, in hgweb

File "hgdemandimport\demandimportpy2.pyc", line 146, in getattr

File "hgdemandimport\demandimportpy2.pyc", line 91, in _load

File "hgdemandimport\demandimportpy2.pyc", line 42, in _hgextimport

File "mercurial\hgweb\hgwebdir_mod.pyc", line 17, in

File "hgdemandimport\demandimportpy2.pyc", line 244, in _demandimport

File "hgdemandimport\demandimportpy2.pyc", line 42, in _hgextimport

File "mercurial\hgweb\common.pyc", line 23, in

File "hgdemandimport\demandimportpy2.pyc", line 146, in getattr

File "hgdemandimport\demandimportpy2.pyc", line 91, in _load

File "hgdemandimport\demandimportpy2.pyc", line 42, in _hgextimport

File "mercurial\util.pyc", line 53, in '0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33' File "mercurial\policy.pyc", line 98, in importmod

File "mercurial\policy.pyc", line 68, in _importfrom

File "hgdemandimport\demandimportpy2.pyc", line 160, in doc

File "hgdemandimport\demandimportpy2.pyc", line 91, in _load

File "hgdemandimport\demandimportpy2.pyc", line 42, in _hgextimport

File "mercurial\cext\base85.pyc", line 12, in

File "mercurial\cext\base85.pyc", line 10, in __load

ImportError: DLL load failed: The specified module could not be found.

我正在使用:

  • Python2.7。在
  • 汞4.3.3。在
  • 来自here(x64)的Mercurial Python模块。在
  • Windows Server 2012 R2 x64。在
  • IIS 8.5。在

例如“它起作用了!”测试.cgi显示OK,这样我就知道映射到Python的IIS处理程序是正确的。在

在线资源有点少而且不一致,我觉得错误消息没有什么特别的帮助。有人能帮我解决这个问题吗?如何找出丢失的模块,以及从何处获取?在


Tags: in错误lineloadiismercurialfilepyc

热门问题