1

I am a new emacs user, and am trying to install ropemacs as I program in python mostly. So i used the command : M-x el-get-install ropemacs. But it gave me the following error: "'the command name 'hg' cannot be found with 'executable find' "

I don't understand it at all and also suggest if there is some other plugin which can do the refactoring, etc I expect from ropemacs.

P.S. I'm running Emacs 24.3 on OS X 10.9

user2239690
  • 81
  • 1
  • 10

2 Answers2

1

Mercurial is missing in your system. It is a distributed version control system like Git or Bazaar. El-get tries to download ropemacs from its repository and it fails.

Or it can be installed, but is missing in your executable path. To detect where Mercurial is installed, type: whereis hg or type -a hg. Ordinary it is located in /usr/bin/hg. In other case, you have to add path to PATH variable. Open ~/.bashrc on Linux, ~/.bash_profile on OS X and append:

export PATH=$PATH:/path/to/hg/directory

More about changing PATH variable you can find in this article.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
yetty
  • 2,326
  • 2
  • 19
  • 22
  • typing whereis hg returns nothing. I couldn't find hg in my /usr/bin folder either. But strangely typing hg on the terminal prompt runs it. How should I proceed? – user2239690 Dec 22 '13 at 17:49
  • what does `type -a hg` return? (I am not sure, if it works on OS X). – yetty Dec 22 '13 at 17:53
  • I found the hg file in /usr/local/bin/hg and put this path into my .bashrc file, but to no help! It still gives me the same error, this time on startup, and also when i try to install ropemacs. – user2239690 Dec 22 '13 at 18:02
  • Sorry, ``.bashrc`` is on Linux - edit ``.bash_profile`` instead. What exactly path do you add to the file? It should be ``/usr/local/bin``. – yetty Dec 22 '13 at 18:06
  • I've added "export PATH=$PATH:/usr/local/bin" to my ~/.bash_profile file, but still no success. – user2239690 Dec 22 '13 at 18:29
  • I tried running emacs in my terminal and the process was completed successfully. Think emacs did not have access to my environment variables. Thanks for your help though! – user2239690 Dec 27 '13 at 07:18
0

This post might help:

http://edward.oconnor.cx/2008/02/ropemacs

download Pymacs, then python setup.py install

download rope, then python setup.py install

download ropemacs, then python setup.py install

Ensure pymacs.el is in your Emacs load-path.

James King
  • 6,229
  • 3
  • 25
  • 40