Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Mercurial on Mavericks

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)
like image 611
wickund Avatar asked Oct 23 '13 14:10

wickund


4 Answers

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

like image 77
Gareth Jones Avatar answered Nov 06 '22 12:11

Gareth Jones


It all works now with the latest Homebrew. If you don't have Homebrew installed you can find it at http://brew.sh along with easy instructions.

Once you do have Homebrew, I recommend doing

$ brew update
$ brew upgrade

To install Mercurial just do

$ brew install hg

Painless.

like image 39
Chuck Avatar answered Nov 06 '22 13:11

Chuck


Mavericks does ship with python 2.7.5 installed, so Mercurial should run just fine. You probably just need to fix or redo your install if the path to python changed.

like image 4
Ry4an Brase Avatar answered Nov 06 '22 11:11

Ry4an Brase


Try

$ sudo pip uninstall mercurial

followed by

$ sudo pip install mercurial

EDIT: If you don't have pip, easy_install pip first.

like image 4
Erik Kaplun Avatar answered Nov 06 '22 11:11

Erik Kaplun