“DLL load failed” when using mercurial on trac

旧城冷巷雨未停 提交于 2019-12-07 05:02:31

问题


My mercurial repository works correctly in trac when I use the tracd server.

However, when I use apache, I get the following warning at the top of all trac pages:

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "hg": DLL load failed: The specified module could not be found.). Look in the Trac log for more information.

The trac log doesn't have anything useful except a warning about mercurial being compiled with Python 2.6.2 and the actual version of Python running being 2.6.4.

Does anyone have any ideas on how to solve this?

Versions:

  • Python 2.6 (binary installer from python.org)
  • trac 0.12.2 (using easy_install)
  • mercurial (the Windows pre-built binary from tortoisehg)

Apache is running on a Windows XP (32-bit) machine for testing. I have admin rights, but I think that apache is running as Local User.


回答1:


I have the same problem. There is no problem in mercurial package version 1.7.1. The mistake appears in higher versions, up to 1.8.




回答2:


I ran into a similar error when setting up hgweb (no trac). Hopefully this helps you and anyone else doing the same thing and finding this question via Google.

I solved the problem by using the python library mercurial installer instead of the normal windows msi (or tortoisehg) installer ("Mercurial-1.8.1 (32-bit py2.6)" from https://www.mercurial-scm.org/wiki/Download) and ensuring the mercurial libs import line in hgweb.cgi is commented out.



来源:https://stackoverflow.com/questions/5158523/dll-load-failed-when-using-mercurial-on-trac

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