Running Mercurial on Mavericks

wickund picture wickund · Oct 23, 2013 · Viewed 7.3k times · Source

Seems that Mercurial doesn't run on Mavericks (Python 3.) Anyone find a solution.

abort: couldn't find mercurial libraries in [
    /Library/Python/2.7/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)

Answer

Gareth Jones picture Gareth Jones · Oct 23, 2013

I had a similar problem to this last night after upgrading to OX 10.9 Mavericks. Note: I'm using homebrew, I had tried brew install hg and brew update but they didn't work, as everyone's systems are different 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