I am trying to set my Elpy on my home machine and, so far, everything works except actually running the Python interpreter. I normally launch the interpreter and run code via C-c C-c
, but when I do that under the current install I get the following backtrace:
Debugger entered--Lisp error: (file-error "Searching for program" "No such file or directory" "\\~/anaconda3/bin/python")
make-process(:name "Python" :buffer #<buffer *Python*> :command ("\\~/anaconda3/bin/python" "-i"))
apply(make-process (:name "Python" :buffer #<buffer *Python*> :command ("\\~/anaconda3/bin/python" "-i")))
start-process("Python" #<buffer *Python*> "\\~/anaconda3/bin/python" "-i")
apply(start-process "Python" #<buffer *Python*> "\\~/anaconda3/bin/python" "-i")
start-file-process("Python" #<buffer *Python*> "\\~/anaconda3/bin/python" "-i")
apply(start-file-process "Python" #<buffer *Python*> "\\~/anaconda3/bin/python" "-i")
comint-exec-1("Python" #<buffer *Python*> "\\~/anaconda3/bin/python" ("-i"))
comint-exec(#<buffer *Python*> "Python" "\\~/anaconda3/bin/python" nil ("-i"))
make-comint-in-buffer("Python" "*Python*" "\\~/anaconda3/bin/python" nil "-i")
apply(make-comint-in-buffer "Python" "*Python*" "\\~/anaconda3/bin/python" nil "-i")
python-shell-make-comint("\\~/anaconda3/bin/python -i" "Python" t)
run-python("\\~/anaconda3/bin/python -i" nil t)
elpy-shell-get-or-create-process()
elpy-shell--ensure-shell-running()
elpy-shell-send-region-or-buffer-and-step(nil)
funcall-interactively(elpy-shell-send-region-or-buffer-and-step nil)
call-interactively(elpy-shell-send-region-or-buffer-and-step)
elpy-shell--send-with-step-go(elpy-shell-send-region-or-buffer-and-step nil nil nil)
elpy-shell-send-region-or-buffer(nil)
funcall-interactively(elpy-shell-send-region-or-buffer nil)
call-interactively(elpy-shell-send-region-or-buffer nil nil)
command-execute(elpy-shell-send-region-or-buffer)
Obviously it is not finding my Python install under \\~/anaconda3/bin/python
, most likely due to the prepended \\
in my path (right?). I ensured my paths are correct in my .emacs
file and with elpy-config
. Does anyone have ideas on why this is happening?
emacs -Q
(no init file)? If not, bisect your init file to find the culprit.python-shell-interpreter
is wrongly set to"\\~/anaconda3/bin/python"
. Don't rely onelpy-config
but customize it yourself to"~/anaconda3/bin/python"
.init.el
?