“ImportError: DLL load failed” when attempting hg serve (Windows)

时光总嘲笑我的痴心妄想 提交于 2019-12-24 14:39:06

问题


I am new to Mercurial and just installed EasyMercurial on my Windows 7 machine to learn it. I have created several repositories, and have been successfully making commits and pushes and pulls. However, when I tried the "hg serve" command, the server doesn't start. This is the error message that I get (debugging turned on in case that helps):

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)

There isn't any kind of "serve" command that I can find on the EasyMercurial UI, so one thought I have is that maybe "hg serve" just isn't supported by what you get with EasyMercurial. But I seem to be able to do everything else using my choice of either the command line or the UI, so it seems to me that this ought to work. Am I wrong or is my install just bad somehow?


回答1:


I was having the same problem. I've uninstalled TortoiseHG 4.4.1 and installed 4.3.1 version and it worked.

Link for older versions: https://bitbucket.org/tortoisehg/files/downloads/



来源:https://stackoverflow.com/questions/23531866/importerror-dll-load-failed-when-attempting-hg-serve-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!