The Python interpreter could not find the elpy module.
Closed this issue · 1 comments
mooseyboots commented
Summary
After the latest update, I have constant errors again, like:
error in process sentinel: elpy-promise-reject: peculiar error: "exited abnormally with code 1"
elpy-output reports:
Output
/path/to/.emacs.d/elpy/rpc-venv/bin/python: Error while finding module specification for 'elpy.__main__' (ModuleNotFoundError: No module named 'elpy')
Steps to reproduce
open a .py file with elpy enabled
My configuration
OS
Emacs 28.1, on Debian stable.
Result of (elpy-config)
Elpy Configuration
Emacs.............: 28.1
Elpy..............: Not found (Python), 1.35.0 (Emacs Lisp)
Virtualenv........: srtext (/~/.virtualenvs/srtext/)
Interactive Python: python3 3.9.2 (/~/.virtualenvs/srtext/bin/python3)
RPC virtualenv....: rpc-venv (/path/to/.emacs.d/elpy/rpc-venv)
Python...........: python 3.9.2 (/path/to/.emacs.d/elpy/rpc-venv/bin/python)
Jedi.............: 0.18.1
Autopep8.........: 1.6.0
Yapf.............: 0.32.0
Black............: 22.6.0
Syntax checker....: flake8 (/~/.local/bin/flake8)
Warnings
The Python interpreter could not find the elpy module. Please report to:
https://github.com/jorgenschaefer/elpy/issues/new.
Elpy configuration in my init.el
(use-package python)
;; recommended by the elpy docs:
(use-package elpy
:ensure t
:defer t
:init
(advice-add 'python-mode :before 'elpy-enable))
(use-package pyvenv
:after python-mode
:config
(setq pyvenv-mode t
pyvenv-tracking-ask-before-change t
pyvenv-virtualenvwrapper-python "/usr/bin/python3"
pyvenv-workon nil))
mooseyboots commented
issue disappeared. sorry for the noise.