Search code examples
pythonemacsropemacs

the command name 'hg' cannot be found with 'executable find'


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


Solution

  • 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.