Eclipse 的 Mercurial 插件找不到 Python——如何修复?
我使用的是 Mac OS X 10.7.1 (Lion)。我刚刚下载了适用于 Java EE 开发人员的 Eclipse IDE 的新副本,并安装了 Mercurial 插件。我收到以下错误消息:
中止:在 [...分类 Python 目录...] 中找不到 Mercurial 库。
我确实安装了 Python 2.6.1 和 3.2.1。我还有一个目录 System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7,它位于它查找 Mercurial 库的位置列表中。 hg -y debuginstall
给了我同样的消息。
这些库的名称是什么,当我安装插件时 Eclipse 可能会将它们放在哪里,以及如何告诉 Eclipse 它们在哪里(或者我应该将它们移动到哪里)?
谢谢,戴夫
完整错误消息如下:
中止:找不到 Mercurial 库 [/usr/platlib/Library/Python/2.6/site-packages /usr/local/bin /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC /Library/Python/2.7/site-packages](检查您的安装和 PYTHONPATH)
I'm on Mac OS X 10.7.1 (Lion). I just downloaded a fresh copy of Eclipse IDE for Java EE Developers, and installed the Mercurial plugin. I get the following error message:
abort: couldn't find mercurial libraries in [...assorted Python directories...].
I do have Python 2.6.1 and 3.2.1 installed. I also have a directory System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
, which is on the list of places it looked for the Mercurial libraries. hg -y debuginstall
gives me the same message.
What are these libraries named, where is Eclipse likely to have put them when I installed the plugin, and how do I tell Eclipse where they are (or where should I move them to)?
Thanks, Dave
Full error message follows:
abort: couldn't find mercurial libraries in
[/usr/platlib/Library/Python/2.6/site-packages /usr/local/bin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
/Library/Python/2.7/site-packages] (check your install and PYTHONPATH)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有人回答我,但我找到了答案。也许它会对某人有所帮助。
我终于意识到,由于命令行中的“hg -y debuginstall”给了我同样的错误消息,所以这根本不是 Eclipse 问题(废话)。重新安装较新版本的 Mercurial 解决了该问题。
Nobody answered me, but I figured out the answer. Maybe it will help someone.
I finally realized that since 'hg -y debuginstall' at the command line was giving me the same error message, it wasn't an Eclipse problem at all (duh). Reinstalling a newer version of Mercurial solved the problem.
我在 mac 上安装了两次 Mercurial。
一个是直接安装的,另一个是使用macport安装的。
删除直接安装解决了问题。
使用删除直接安装
easy_install -m Mercurial
将“Mercurial Executable”路径更新为“/opt/local/bin/hg”
Eclipse->首选项->团队->Mercurial->
重启eclipse
I had two installation of mercurial in mac.
One was installed directly and another using macport.
Removing the direct installation solved the problem.
Remove the direct installation using
easy_install -m mercurial
Update "Mercurial Executable" path to "/opt/local/bin/hg"
Eclipse->Preference->Team->Mercurial->
Restart eclipse