Skip to content

Appears not to handle spaces in paths (breaking with Aquamacs) #17

Description

@marcintustin

Originally reported at: tkf/emacs-jedi#305

In short, Aquamacs installs packages under a path with spaces. This causes jedi installation to fail. When an explicit path to put the virtualenvs is set, without spaces, it works. Accordingly, I infer that handling of paths with spaces is broken in this library.

Here is it breaking:

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.

It works for me with this workaround:

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions