Mountain Lion update and mercurial libraries pytho

2020-06-06 17:27发布

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?

7条回答
闹够了就滚
2楼-- · 2020-06-06 17:48

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

查看更多
Melony?
3楼-- · 2020-06-06 17:50

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

brew install hg

...worked for me.

查看更多
贪生不怕死
4楼-- · 2020-06-06 17:53

I had this same issue.

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

查看更多
祖国的老花朵
5楼-- · 2020-06-06 17:56

As a macports user I "solved" this by running

sudo port install mercurial
查看更多
干净又极端
6楼-- · 2020-06-06 18:03

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.

查看更多
Explosion°爆炸
7楼-- · 2020-06-06 18:04

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.

查看更多
登录 后发表回答