Mountain Lion update and mercurial libraries python

ⅰ亾dé卋堺 提交于 2019-12-09 07:25:59

问题


I updated the mac to Mountain Lion (10.8) and now the project I developed with Python and Google App Engine does not work.

GAE libraries are found, while standard Python libraries (are these Python libraries?) are missed (e.g. cgi, logging, json).

When I open eclipse (which has PyDeV) I receive this alert:

abort: couldn't find mercurial libraries in 
[/Library/Python/2.7/site-packages/  /usr/local/bin
/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg 
/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). Command line: hg -y debuginstall

Does anyone know how to fix this?


回答1:


On OS X - 10.8.2 Installing mercurial through Python easy_install tool solved the problem

easy_install -U mercurial



回答2:


I just ran into the same problem, picked a new version (mercurial-2.2.3+20120707-py2.7-macosx10.7) from the Mercurial website and now it works again.




回答3:


I had a similar problem to this last night after upgrading to OX 10.9 Mavericks. I had tried brew install hg and brew update but they didn't work, as everyone's systems are different if you're running homebrew I would recommend running brew doctor to see what your particular issue is, in my case I had the following;

Warning: You have unlinked kegs in your Cellar

Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run brew link on these: mercurial

So to fix my mercurial issue I ran;

brew link --overwrite mercurial




回答4:


I had this same issue.

Reinstalling Mercurial fixed it. Get it from here: http://mercurial.berkwood.com/




回答5:


Another easy option is to use Homebrew (http://mxcl.github.io/homebrew/):

brew install hg

...worked for me.




回答6:


As a macports user I "solved" this by running

sudo port install mercurial



回答7:


FYI for others - I was seeing similar errors and had to reinstall setuptools. (http://pypi.python.org/pypi/setuptools/0.6c11 if you're not already familiar with it.)

Things seem to work now.



来源:https://stackoverflow.com/questions/11797761/mountain-lion-update-and-mercurial-libraries-python

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