Emacs: Pymacs do not load ropemacs with Carbon Emacs

I am trying to use Pymacs with rope / ropemacs to check the flymake syntax as described here: http://www.enigmacurry.com/2009/01/21/autocompleteel-python-code-completion-in-emacs/

When I start Carbon Emacs "normally", it gives an error:

error: loading pymacs ropemacs ... failed

I worked on OSX 10.5 with Carbon Emacs, but in 10.6 it does not work. However, it works when loading "terminal" emacs, Aquamacs, or if I open Carbon Emacs from the command line using "/Applications/Emacs.app/Contents/MacOS/Emacs". I suppose this is some kind of path error, but I cannot figure it out for the life of me.

My setup is OSX 10.6.2 and I am using macports python 2.6.4.

Thank!

+3
source share
1 answer

This is most likely a path issue. When you start emacs from a terminal, your environment variable PATHsupposedly includes the Maccorts bin directory /opt/local/bin, because you supposedly changed one of your shell profiles, perhaps .bash_profileto include that directory in PATH.

( ), , /opt/local/bin PATH. , Pymacs . python, , , Apple python2.6 (python /usr/bin/env python). , python, , /opt/local/bin/python2.6.

, , plist Carbon Emacs.app, LSEnvironment PATH. PATH ~/.MacOSX/environment.plist. .

Pymacs Apple Python 2.6.1.

, , , easy_install. python MacPorts, , easy_install, Apple /usr/bin:

$ sudo port install py26-setuptools
$ /opt/local/bin/easy_install-2.6 <package>
+1

Source: https://habr.com/ru/post/1725509/


All Articles