Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elpy fails to find python on fresh installs of Ubuntu 20.04 #1940

Closed
eanopolsky opened this issue Oct 14, 2021 · 0 comments
Closed

elpy fails to find python on fresh installs of Ubuntu 20.04 #1940

eanopolsky opened this issue Oct 14, 2021 · 0 comments

Comments

@eanopolsky
Copy link
Contributor

Summary

On a fresh install of Ubuntu Server 20.04, python is not symlinked to python3, so elpy does not work out of the box.

Systems that have been upgraded from previous Ubuntu releases to 20.04 do not seem to have this problem.

Steps to reproduce

  1. Install Ubuntu Server 20.04 using only the default options.
  2. Install emacs from the package manager.
  3. Install elpy from melpa using the instructions at https://github.com/jorgenschaefer/elpy/blob/master/README.rst
  4. Start emacs.
  5. Run M-x elpy-config RET.

What I expected to happen:
I expected elpy to set up an RPC virtual environment and eventually display the config interface.

What actually happened:
Elpy displayed Cannot find executable 'python', please set 'elpy-rpc-python-command' to an existing executable. and did not display the config interface.

My configuration

OS

Ubuntu Server 20.04.3.

Result of (elpy-config)

Cannot find executable 'python', please set 'elpy-rpc-python-command' to an existing executable.

Elpy configuration in my init.el

(use-package elpy
  :ensure t
  :init
  (elpy-enable))

Workaround

Installing the python-is-python3 package works around this issue.

eanopolsky added a commit to eanopolsky/elpy that referenced this issue Oct 14, 2021
@gopar gopar closed this as completed in 0a308b4 Dec 10, 2021
gopar added a commit that referenced this issue Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant