Mercurial CGI (hgweb.cgi) 失败
我在虚拟机上运行的 Win 2k8 R2 上安装了 Mercurial 1.8.1、Python 2.6.6。我尝试过从 msi、源代码和使用 tortisehg 安装。命令行 Hg 工作正常,但运行 hgweb.cgi 时出现相同的错误:
Traceback (most recent call last): File ".\hgweb.cgi", line 17, in application = hgweb(config) File "mercurial\hgweb\__init__.pyc", line 26, in hgweb File "mercurial\hgweb\hgwebdir_mod.pyc", line 61, in __init__ File "mercurial\hgweb\hgwebdir_mod.pyc", line 70, in refresh File "mercurial\ui.pyc", line 35, in __init__ File "mercurial\demandimport.pyc", line 75, in __getattribute__ File "mercurial\demandimport.pyc", line 47, in _load File "mercurial\util.pyc", line 576, in File "mercurial\demandimport.pyc", line 85, in _demandimport File "mercurial\windows.pyc", line 21, in File "mercurial\demandimport.pyc", line 75, in __getattribute__ File "mercurial\demandimport.pyc", line 47, in _load File "mercurial\osutil.pyc", line 12, in File "mercurial\osutil.pyc", line 10, in __load ImportError: DLL load failed: The specified module could not be found.
我在 SO 和其他地方找到的其他答案指出我尝试从源代码安装,将纯 osutil 放入安装中,或安装旧版本。我都试过了。
这尤其令人沮丧,因为我有其他类似的非虚拟机运行良好,但无法找到断开连接。
有想法吗?
I have Mercurial 1.8.1, Python 2.6.6 installed on Win 2k8 R2 running on a vm. I have tried installing from msi, source and using tortisehg. Command-line Hg works fine but I get the same error when running the hgweb.cgi:
Traceback (most recent call last): File ".\hgweb.cgi", line 17, in application = hgweb(config) File "mercurial\hgweb\__init__.pyc", line 26, in hgweb File "mercurial\hgweb\hgwebdir_mod.pyc", line 61, in __init__ File "mercurial\hgweb\hgwebdir_mod.pyc", line 70, in refresh File "mercurial\ui.pyc", line 35, in __init__ File "mercurial\demandimport.pyc", line 75, in __getattribute__ File "mercurial\demandimport.pyc", line 47, in _load File "mercurial\util.pyc", line 576, in File "mercurial\demandimport.pyc", line 85, in _demandimport File "mercurial\windows.pyc", line 21, in File "mercurial\demandimport.pyc", line 75, in __getattribute__ File "mercurial\demandimport.pyc", line 47, in _load File "mercurial\osutil.pyc", line 12, in File "mercurial\osutil.pyc", line 10, in __load ImportError: DLL load failed: The specified module could not be found.
The other answers I have found on SO and elsewhere pointed me to try installing from source, dropping the pure osutil into the install, or installing an older version. I have tried them all.
This is especially frustrating because I have other, similar non-vm machines running fine but have been unable to find the disconnect.
Ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用以下系统配置遇到了同样的错误
我简单地解决了这个问题:
到目前为止一切正常。希望这会有所帮助。
I had the same error using following system configuration
I solved this problem simply:
Till now all is working. Hope this will help.
每当我收到描述性错误消息,告诉我系统级别发生了一些事情,但不告诉我是什么事情时,我会使用 Sysinternals 的 Procmon 告诉我注册表和文件系统的情况。它很冗长,并且让过滤器仅显示感兴趣的过程需要一些学习,但您可以将结果导出到 Excel 并浏览它们以查找可疑的结果。当然,要特别注意失败。
尝试一下,看看正在搜索什么 DLL。
Whenever I have less than descriptive error messages that tell me something is going on at the system level but not what, I use Sysinternals' Procmon to tell me what's going with the registry and filesystem. It's verbose, and getting the filter to show just the process of interest takes some learning, but you can export the results to Excel and skim them for suspicious-looking results. Pay particular attention to failures, of course.
Give it a try and see what DLL is being searched for.