Then I added to ~/Library/Preferences/Aquamacs\ Emacs/Preferences.el (Aquamacs prefers this instead of ~/.emacs) the following: Therefore, it is necessary to redefine the PATH and PYTHONPATH from Emacs’ configuration" Unless Emacs is run from the shell, it will not be running in an interactive session. bash_profile, because those files are only evaluated in an interactive shell. I found in the web ( ) that "Cocoa Emacs does not use PATH or PYTHONPATH as it is defined in. It turn out that M-: (getenv "PYTHONPATH") and PATH were OK ("/Users/temok/ApplicationsMine/builds/PipJobs10.10Yosemite/pip-packages/") for the case when Emacs is run from the terminal, but they were empty for Aquamacs. Or should I set each variable one by one? Users/temok/ApplicationsMine/builds/PipJobs10.10Yosemite/pip-packages/ I think either Emacs or Elpy are not able to find my pip-packages because they are in a non-standard location: You requested Elpy to use the backend rope, but the Python interpreterĬould not load that module. Interactive Python: /sw/bin/python2.7 (/sw/bin/python2.7) Then restarted Emacs and still get the same behaviour. TargetDir=/Users/temok/ApplicationsMine/builds/PipJobs10.10Yosemite/pip-packages. Users/temok/ApplicationsMine/builds/PipJobs10.10Yosemite/pip-packages/pyflakes/scripts/pyflakes.py test.py I getįlymake: Configuration error has occurred while running (/full_path2pyflakes/scripts/pyflakes.py ~/mytest_flymake.py). rw-r-r- 1 root wheel 3808 26 Dec 23:31 messages.pyĪfter restarting emacs, I still cannot use elpy. Other files under pyflakes/ remain with permissions like rwxr-xr-x 1 root wheel 459 26 Dec 23:31 pyflakes.pyc rwxr-xr-x 1 root wheel 210 26 Dec 23:31 pyflakes.py I changed execution permissions with chmod a+x pyflakes.py* The importmagic package is not available. If youĪre missing some commands, do add this directory to your PATH. Installing Python packages locally willĬreate executables in that directory, so Emacs won't find them. The directory ~/.local/bin/ is not in your PATH, even though you do Pyvenv-activate or M-x pyvenv-workon to activate a virtual env. Often a good idea to work inside a virtual env. Importmagic.: Not found (0.1.3 available) Interactive Python: python (/usr/bin/python) I am attaching the full output of M-x elpy-config at the end of this message. Users/temok/ApplicationsMine/builds/PipJobs10.10Yosemite/pip-packages/rope Another issue is that I did install Rope, under the same personal pip directory: Now, from the output of M-x elpy-config I notice that 'elpy' is using /usr/bin/python, while I was expecting it to use the Fink's packages under /sw/. Somewhere I read that Fink recommends that non_Fink Pip installations go outside the /sw directory, that's why I put all packages installed with /sw/bin/pip under ``/Users/temok/ApplicationsMine/builds/PipJobs10.10Yosemite/pip-packages/` These packages go under /sw/bin, where I have python and pip. I should mention that I am using OS X, and that I install additional packages using Fink. However, such file does exist, I can browse it with `less’. Syntax checker.: Not found (/Users/temok/ApplicationsMine/builds/PipJobs10.10Yosemite/pip-packages/pyflakes/scripts/pyflakes.py)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |