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

Jedi:install-server fails with code 127 #305

Open
appetrosyan opened this issue Feb 14, 2018 · 3 comments
Open

Jedi:install-server fails with code 127 #305

appetrosyan opened this issue Feb 14, 2018 · 3 comments

Comments

@appetrosyan
Copy link

appetrosyan commented Feb 14, 2018

installed Jedi through use-package. pulled in pip, pip3, Jedi python package etc. get the following error

Running: pip install --upgrade /Users/app/Library/Preferences/Aquamacs Emacs/Packages/elpa/jedi-core-20170121.610/...Done
deferred error : (error "Deferred process exited abnormally:
  command: /Users/app/Library/Preferences/Aquamacs Emacs/Packages/.python-environments/default/bin/pip
  exit status: exit 127
  event: exited abnormally with code 127
  buffer contents: \"/Applications/Aquamacs.app/Contents/MacOS/Aquamacs: /Users/app/Library/Preferences/Aquamacs Emacs/Packages/.python-environments/default/bin/pip: No such file or directory
\"")

Problem is, pip is installed and that file clearly exists. My suspicion is that the path contains a space and therefore can't be properly parsed.

@marcintustin
Copy link

marcintustin commented Apr 24, 2018

I'm seeing the exact same error, but the python-environment does not exist; clearly jedi is NOT creating the virtualenv.

I have jedi-core 20170121.610 and not jedi.

Update: installing jedi doesn't help.

@marcintustin
Copy link

Update: I have a working workaround with this:

(use-package jedi-core
  :ensure t
  :config
  (setq python-environment-directory "~/.emacs.d/.python-environments"))

Looks like the root cause is a combination of how Aquamacs is configured and presumably the underlying virtualenv library not handling spaces.

@immerrr
Copy link
Collaborator

immerrr commented Nov 10, 2018

Hi, I have tried this on a fresh 10.11 install and I'm afraid I cannot reproduce it. What I did:

  • install fresh aquamacs emacs
  • install pip and virtualenv (via downloading get-pip.py and sudo python get-pip.py pip virtualenv)
  • added the following to ~/Library/Preferences/Aquamacs Emacs/customizations.el
(require 'gnutls)
(push "/usr/local/etc/openssl/cert.pem" gnutls-trustfiles)

(package-install 'use-package)
(require 'use-package)
(use-package jedi
  :ensure t
  :config
  (add-hook 'python-mode-hook 'jedi:setup)
  (setq jedi:complete-on-dot t)
  (global-auto-complete-mode 1))

After that jedi:install-server just worked and I was able to get completions. Could you try again installing the recent version of emacs-jedi?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants