How to fix spacemacs importmagic and/or epc not found?
Asked Answered
V

3

21

I use spacemacs config to open a python file.

emacs: 25.3.1
spacemacs: 0.300.0
platform: osx

I add python layer in dotspacemacs-configuration-layers, besides I use miniconda to control my python envs with (setenv "WORKON_HOME" "~/miniconda3/envs") in dotspacemacs/user-init.

Then I run into this problem(copy from Messages) when I open a python file:

Importmagic and/or epc not found. importmagic.el will not be working.

Tried to solve this situation from discussion at spacemacs#10145 by add

(require 'pyvenv)
(pyvenv-activate DIRECTORY)

into my dotspacemacs/user-config but with no lucky.

Hope someone could give me some advice, thank you!

Vullo answered 2/3, 2018 at 8:50 Comment(0)
P
22

Did you

pip3 install importmagic epc 

in the python environment you're working in?

Pedrick answered 5/3, 2018 at 17:43 Comment(2)
Strangely apt install python3-importmagic elpa-epc did not work.Bilbrey
@JPVentura Install it in your virtual python environment e.g. pipenv install importmagic epcVerret
P
4

pip install importmagic epc should work.

If not, check this variable: python-shell-interpreter, this is the python which need to install the packages.

Premises answered 17/10, 2018 at 11:45 Comment(1)
i had to combine this answer with the accepted one to produce the command ipython -m pip install importmagic epcOsteoma
K
1

I had the same problem running spacemacs and lsp-mode for python. It turned out that I hadn't activated lsp on that directory / project and it wasn't running.

Once the lsp layer was running again, then the importmagic and epc errors went away.

Khat answered 29/8, 2019 at 20:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.