elpy icon indicating copy to clipboard operation
elpy copied to clipboard

elpy-shell-get-or-create-process fails for remote files

Open sam-s opened this issue 4 years ago • 0 comments

Steps to reproduce

  1. open a tramp (remote) file /foo:~/bar.py.
  2. on the remote server, create a symlink: ln -s /usr/bin/python3 ~/this-does-not-exist-locally
  3. set python-shell-interpreter to "~/this-does-not-exist-locally"
  4. in the remote buffer, C-c C-z fails because executable-find does not find "~/this-does-not-exist-locally"
  5. if the call to executable-find is removed, things just work.

My configuration

OS

local: mac remote: linux

Result of (elpy-config)

Emacs.............: 28.0.50
Elpy..............: 1.35.0
Virtualenv........: None
Interactive Python: python3 3.9.5 (/usr/local/bin/python3)
RPC virtualenv....: rpc-venv (/Users/sdsg/.config/emacs/elpy/rpc-venv)
 Python...........: python3 3.8.2 (/Users/sdsg/.config/emacs/elpy/rpc-venv/bin/python3)
 Jedi.............: 0.18.0
 Rope.............: 0.19.0
 Autopep8.........: 1.5.6 (1.5.7 available)
 Yapf.............: 0.31.0
 Black............: 21.4b2 (21.5b1 available)
Syntax checker....: pylint (/Users/sdsg/.virtualenvs/myself/bin/pylint)

Elpy configuration in my init.el

(custom-set-variables
 '(elpy-project-root-finder-functions
   '(elpy-project-find-git-root
     elpy-project-find-python-root
     elpy-project-find-hg-root)))

sam-s avatar May 20 '21 21:05 sam-s