1

I am getting following error when I do M-x elpy-goto-definition, even though I have installed jedi. I have followed following answer and this one.

Error message: This feature requires the ‘jedi‘ package to be installed.


My configuration as follows:

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

(setq elpy-rpc-backend "jedi")

;;;;;;; Standard Jedi.el setting
(add-hook 'python-mode-hook 'jedi:setup)
(add-hook 'python-mode-hook 'jedi:ac-setup)
(setq jedi:setup-keys t)                      ; optional
(setq jedi:complete-on-dot t)                 ; optional
(add-hook 'elpy-mode-hook (lambda () (highlight-indentation-mode -1)))

[Q] How could I combine elpy and jedi?

13
  • 1
    What is the output of M-x elpy-config? That should tell you if it’s having a problem accessing any components like Jedi.
    – AndrewE
    Feb 28 '20 at 14:42
  • 2
    Don't know if that is the issue, but you try to (elpy-enable) before elpy is loaded. Change :init to :config Read at the manual about the function of both keywords.
    – jue
    Feb 28 '20 at 15:18
  • elpy-config => gist.github.com/avatar-lavventura/… @AndrewE
    – alper
    Feb 29 '20 at 17:10
  • I have done it but still I am getting the same error @jue
    – alper
    Feb 29 '20 at 17:24
  • 1
    @alper what happens when you click “[install jedi]” on the elpy-config screen?
    – AndrewE
    Mar 1 '20 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.