尝试hg服务时出现“ImportError:DLL加载失败”(Windows)

时间:2014-05-08 02:43:50

标签: mercurial

我是Mercurial的新手,刚刚在我的Windows 7机器上安装了EasyMercurial来学习它。我已经创建了几个存储库,并且已经成功地进行了提交和推送。但是,当我尝试" hg serve"命令,服务器无法启动。这是我收到的错误消息(在有帮助的情况下打开调试):

PS C:\scripts> hg serve --debugger
entering debugger - type c to continue starting hg or h for help
> c:\scripts\mercurial\dispatch.pyo(87)_runcatch()
(Pdb) c
listening at http://MyMachineName:8000/ (bound to *:8000)
Traceback (most recent call last):
  File "mercurial\dispatch.pyo", line 87, in _runcatch
  File "mercurial\dispatch.pyo", line 741, in _dispatch
  File "mercurial\dispatch.pyo", line 514, in runcommand
  File "mercurial\dispatch.pyo", line 831, in _runcommand
  File "mercurial\dispatch.pyo", line 802, in checkargs
  File "mercurial\dispatch.pyo", line 738, in <lambda>
  File "mercurial\util.pyo", line 472, in check
  File "mercurial\commands.pyo", line 5280, in serve
  File "mercurial\cmdutil.pyo", line 533, in service
  File "mercurial\commands.pyo", line 5276, in run
  File "SocketServer.pyo", line 225, in serve_forever
  File "mercurial\demandimport.pyo", line 86, in __getattribute__
  File "mercurial\demandimport.pyo", line 58, in _load
  File "select.pyo", line 12, in <module>
  File "select.pyo", line 10, in __load
ImportError: DLL load failed: The specified module could not be found.
> c:\scripts\select.pyo(10)__load()
(Pdb)

没有任何&#34;服务&#34;我可以在EasyMercurial UI上找到的命令,所以我认为可能是&#34; hg serve&#34;您对EasyMercurial的支持并不受支持。但是我似乎能够使用我选择的命令行或UI来做其他所有事情,所以在我看来这应该才能工作。我错了还是我的安装只是坏了?

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题。我已经卸载了TortoiseHG 4.4.1并安装了4.3.1版本并且运行良好。

旧版本的链接:https://bitbucket.org/tortoisehg/files/downloads/