我正在尝试按照以下说明为 Mac 安装 TortoiseHg:https ://bitbucket.org/tortoisehg/thg/wiki/developers/MacOSX#!alternative-install-via-macports
我正在尝试按照有关“替代方案:通过 Homebrew 安装”的说明进行操作,但遇到了问题。
当我./thg log
按照说明执行时,TortoiseHg 正在启动。但是,当我尝试从 python 脚本创建应用程序时,会创建应用程序,但是当我启动它时它会崩溃。
这是输出:
Traceback (most recent call last):
File "/Users/fabienhenon/Documents/thg-mac-app/dist/TortoiseHg.app/Contents/Resources/__boot__.py", line 316, in <module>
_run()
File "/Users/fabienhenon/Documents/thg-mac-app/dist/TortoiseHg.app/Contents/Resources/__boot__.py", line 311, in _run
exec(compile(source, path, 'exec'), globals(), globals())
File "/Users/fabienhenon/Documents/thg-mac-app/dist/TortoiseHg.app/Contents/Resources/main.py", line 28, in <module>
imp.load_source("thg", SCRIPT_DIR + "/bin/thg")
File "/Users/fabienhenon/Documents/thg-mac-app/dist/TortoiseHg.app/Contents/Resources/bin/thg", line 56, in <module>
from mercurial import demandimport
ImportError: No module named mercurial
2013-01-06 12:25:17.436 TortoiseHg[406:707] TortoiseHg Error
logout
[Opération terminée]
当我输入:hg --version
我有以下输出:
Mercurial Distributed SCM (version 2.4.2+20130102)
(see http://mercurial.selenic.com for more information)
Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
有人可以帮我解决这个问题吗?
谢谢您的回答