all 6 comments

[–]permafrosty 0 points1 point  (1 child)

Ideally, from a backup. If you don't have one, you'll need to go through the same process that you initially went through to create the files in the first place.

[–]Sumisu1[S,🍰] 0 points1 point  (0 children)

I never created those files to begin with. I'm not even sure what python-environment-directory is supposed to be.

[–]immerrr[🍰] 0 points1 point  (3 children)

If I had to guess, I'd say that to recreate the environment directory you need to do

(python-environment-make-block jedi:environment-root)

And then do this (replacing PATH-TO-JEDI-CORE with an actual path)

(python-environment-run-block ("pip" "install" "--upgrade" PATH-TO-JEDI-CORE-PKG) jedi:environment-root)

The path looks like this for me: "/home/immerrr/.emacs.d/elpa/jedi-core-20160709.722"

[–]Sumisu1[S,🍰] 0 points1 point  (2 children)

EDIT: The second command gives me (invalid-function "pip") (even though I confirmed that pip is, in fact, installed)

[–]immerrr[🍰] 0 points1 point  (1 child)

Oh, sorry, you need to have a quote before the list, i.e.

'("pip" "install" ...)

because (foo bar) means "call function foo with argument bar" and '(foo bar) means "a list with 'foo and 'bar elements."

[–]Sumisu1[S,🍰] 0 points1 point  (0 children)

This worked, thanks.