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

Error (use-package): python :init: Invalid version syntax: ‘zsh:1: command not found: ipython’ (must start with a number) #7265

Closed
kissgyorgy opened this issue Oct 4, 2016 · 23 comments
Labels
- Bug tracker - stale marked as a stale issue/pr (usually by a bot)

Comments

@kissgyorgy
Copy link

kissgyorgy commented Oct 4, 2016

Description :octocat:

Error (use-package): python :init: Invalid version syntax: ‘zsh:1: command not found: ipython’ (must start with a number)

Reproduction guide 🪲

  • Update to 0.200
  • Start Emacs

Observed behaviour: 👀 💔
An error window popping up with error message in description

Expected behaviour: ❤️ 😄
Start normally without errors

System Info 💻

  • OS: darwin
  • Emacs: 25.1.1
  • Spacemacs: 0.200.0
  • Spacemacs branch: master (rev. e6357a5)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
((auto-completion :variables auto-completion-enable-help-tooltip t auto-completion-return-key-behavior nil auto-completion-tab-key-behavior 'complete auto-completion-enable-snippets-in-popup t)
 emacs-lisp eyebrowse fasd git github dash markdown ibuffer org ranger
 (shell :variables shell-default-shell 'term shell-default-term-shell
        (if
            (string= "kiss-gyorgy.site"
                     (getenv "HOST"))
            "/usr/bin/zsh" "/usr/local/bin/zsh")
        shell-default-height 30 shell-default-position 'bottom)
 semantic syntax-checking unimpaired version-control html
 (python :variables python-test-runner 'pytest python-shell-interpreter "python")
 go vinegar django)
@TheBB
Copy link
Collaborator

TheBB commented Oct 4, 2016

Backtrace please.

@kissgyorgy
Copy link
Author

Debugger entered--Lisp error: (error "Invalid version syntax: ‘zsh:1: command not found: ipython’ (must start with a number)")
  signal(error ("Invalid version syntax: ‘zsh:1: command not found: ipython’ (must start with a number)"))
  error("Invalid version syntax: `%s' (must start with a number)" "zsh:1: command not found: ipython")
  version-to-list("zsh:1: command not found: ipython")
  version<("zsh:1: command not found: ipython" "5")
  (if (version< (replace-regexp-in-string "\n$" "" (shell-command-to-string "ipython --version")) "5") (setq python-shell-interpreter-args "-i") (setq python-shell-interpreter-args "--simple-prompt -i"))
  (progn (setq python-shell-interpreter "ipython") (if (version< (replace-regexp-in-string "\n$" "" (shell-command-to-string "ipython --version")) "5") (setq python-shell-interpreter-args "-i") (setq python-shell-interpreter-args "--simple-prompt -i")))
  (if (spacemacs/pyenv-executable-find "ipython") (progn (setq python-shell-interpreter "ipython") (if (version< (replace-regexp-in-string "\n$" "" (shell-command-to-string "ipython --version")) "5") (setq python-shell-interpreter-args "-i") (setq python-shell-interpreter-args "--simple-prompt -i"))) (progn (setq python-shell-interpreter-args "-i") (setq python-shell-interpreter "python")))
  spacemacs/python-setup-shell()
  (progn (spacemacs/register-repl (quote python) (quote python-start-or-switch-repl) "python") (defalias (quote python-default) (function (lambda nil (setq mode-name "Python" tab-width 4 fill-column python-fill-column) (if (version< emacs-version "24.5") (progn (setq electric-indent-chars (delq 58 electric-indent-chars)))) (set (make-local-variable (quote comment-inline-offset)) 2) (spacemacs/python-annotate-pdb) (local-set-key (kbd "C-j") (quote newline-and-indent))))) (defalias (quote inferior-python-setup-hook) (function (lambda nil (setq indent-tabs-mode t)))) (add-hook (quote inferior-python-mode-hook) (function inferior-python-setup-hook)) (add-hook (quote python-mode-hook) (function python-default)) (spacemacs/python-setup-shell))
  (condition-case err (progn (spacemacs/register-repl (quote python) (quote python-start-or-switch-repl) "python") (defalias (quote python-default) (function (lambda nil (setq mode-name "Python" tab-width 4 fill-column python-fill-column) (if (version< emacs-version "24.5") (progn (setq electric-indent-chars ...))) (set (make-local-variable (quote comment-inline-offset)) 2) (spacemacs/python-annotate-pdb) (local-set-key (kbd "C-j") (quote newline-and-indent))))) (defalias (quote inferior-python-setup-hook) (function (lambda nil (setq indent-tabs-mode t)))) (add-hook (quote inferior-python-mode-hook) (function inferior-python-setup-hook)) (add-hook (quote python-mode-hook) (function python-default)) (spacemacs/python-setup-shell)) ((debug error) (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" ":init" (error-message-string err)) :error))))
  (condition-case-unless-debug err (progn (spacemacs/register-repl (quote python) (quote python-start-or-switch-repl) "python") (defalias (quote python-default) (function (lambda nil (setq mode-name "Python" tab-width 4 fill-column python-fill-column) (if (version< emacs-version "24.5") (progn (setq electric-indent-chars ...))) (set (make-local-variable (quote comment-inline-offset)) 2) (spacemacs/python-annotate-pdb) (local-set-key (kbd "C-j") (quote newline-and-indent))))) (defalias (quote inferior-python-setup-hook) (function (lambda nil (setq indent-tabs-mode t)))) (add-hook (quote inferior-python-mode-hook) (function inferior-python-setup-hook)) (add-hook (quote python-mode-hook) (function python-default)) (spacemacs/python-setup-shell)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" ":init" (error-message-string err)) :error))))
  (progn (condition-case-unless-debug err (progn (spacemacs/register-repl (quote python) (quote python-start-or-switch-repl) "python") (defalias (quote python-default) (function (lambda nil (setq mode-name "Python" tab-width 4 fill-column python-fill-column) (if (version< emacs-version "24.5") (progn ...)) (set (make-local-variable ...) 2) (spacemacs/python-annotate-pdb) (local-set-key (kbd "C-j") (quote newline-and-indent))))) (defalias (quote inferior-python-setup-hook) (function (lambda nil (setq indent-tabs-mode t)))) (add-hook (quote inferior-python-mode-hook) (function inferior-python-setup-hook)) (add-hook (quote python-mode-hook) (function python-default)) (spacemacs/python-setup-shell)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" ":init" (error-message-string err)) :error)))) (condition-case-unless-debug err (run-hooks (quote use-package--python--post-init-hook)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" "post-:init hook" (error-message-string err)) :error)))))
  (if (condition-case-unless-debug err (run-hook-with-args-until-failure (quote use-package--python--pre-init-hook)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" "pre-:init hook" (error-message-string err)) :error)))) (progn (condition-case-unless-debug err (progn (spacemacs/register-repl (quote python) (quote python-start-or-switch-repl) "python") (defalias (quote python-default) (function (lambda nil (setq mode-name "Python" tab-width 4 fill-column python-fill-column) (if ... ...) (set ... 2) (spacemacs/python-annotate-pdb) (local-set-key ... ...)))) (defalias (quote inferior-python-setup-hook) (function (lambda nil (setq indent-tabs-mode t)))) (add-hook (quote inferior-python-mode-hook) (function inferior-python-setup-hook)) (add-hook (quote python-mode-hook) (function python-default)) (spacemacs/python-setup-shell)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" ":init" (error-message-string err)) :error)))) (condition-case-unless-debug err (run-hooks (quote use-package--python--post-init-hook)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" "post-:init hook" (error-message-string err)) :error))))))
  (when (condition-case-unless-debug err (run-hook-with-args-until-failure (quote use-package--python--pre-init-hook)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" "pre-:init hook" (error-message-string err)) :error)))) (condition-case-unless-debug err (progn (spacemacs/register-repl (quote python) (quote python-start-or-switch-repl) "python") (defalias (quote python-default) (function (lambda nil (setq mode-name "Python" tab-width 4 fill-column python-fill-column) (if (version< emacs-version "24.5") (progn ...)) (set (make-local-variable ...) 2) (spacemacs/python-annotate-pdb) (local-set-key (kbd "C-j") (quote newline-and-indent))))) (defalias (quote inferior-python-setup-hook) (function (lambda nil (setq indent-tabs-mode t)))) (add-hook (quote inferior-python-mode-hook) (function inferior-python-setup-hook)) (add-hook (quote python-mode-hook) (function python-default)) (spacemacs/python-setup-shell)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" ":init" (error-message-string err)) :error)))) (condition-case-unless-debug err (run-hooks (quote use-package--python--post-init-hook)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" "post-:init hook" (error-message-string err)) :error)))))
  (progn (when (condition-case-unless-debug err (run-hook-with-args-until-failure (quote use-package--python--pre-init-hook)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" "pre-:init hook" (error-message-string err)) :error)))) (condition-case-unless-debug err (progn (spacemacs/register-repl (quote python) (quote python-start-or-switch-repl) "python") (defalias (quote python-default) (function (lambda nil (setq mode-name "Python" tab-width 4 fill-column python-fill-column) (if ... ...) (set ... 2) (spacemacs/python-annotate-pdb) (local-set-key ... ...)))) (defalias (quote inferior-python-setup-hook) (function (lambda nil (setq indent-tabs-mode t)))) (add-hook (quote inferior-python-mode-hook) (function inferior-python-setup-hook)) (add-hook (quote python-mode-hook) (function python-default)) (spacemacs/python-setup-shell)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" ":init" (error-message-string err)) :error)))) (condition-case-unless-debug err (run-hooks (quote use-package--python--post-init-hook)) (error (ignore (display-warning (quote use-package) (format "%s %s: %s" "python" "post-:init hook" (error-message-string err)) :error))))) (eval-after-load (quote python) (quote (let ((now (current-time))) (message "%s..." "Configuring package python") (prog1 (progn (when (condition-case-unless-debug err ... ...) (condition-case-unless-debug err ... ...) (condition-case-unless-debug err ... ...)) t) (let ((elapsed ...)) (if (> elapsed 0.1) (message "%s...done (%.3fs)" "Configuring package python" elapsed) (message "%s...done" "Configuring package python"))))))))
  (use-package python :defer t :init (progn (spacemacs/register-repl (quote python) (quote python-start-or-switch-repl) "python") (defalias (quote python-default) (function (lambda nil (setq mode-name "Python" tab-width 4 fill-column python-fill-column) (if (version< emacs-version "24.5") (progn (setq electric-indent-chars ...))) (set (make-local-variable (quote comment-inline-offset)) 2) (spacemacs/python-annotate-pdb) (local-set-key (kbd "C-j") (quote newline-and-indent))))) (defalias (quote inferior-python-setup-hook) (function (lambda nil (setq indent-tabs-mode t)))) (add-hook (quote inferior-python-mode-hook) (function inferior-python-setup-hook)) (add-hook (quote python-mode-hook) (function python-default)) (spacemacs/python-setup-shell)) :config (progn (eval-after-load (quote auto-highlight-symbol) (function (lambda nil (if (member (quote python-mode) ahs-plugin-bod-modes) ahs-plugin-bod-modes (setq ahs-plugin-bod-modes (cons ... ahs-plugin-bod-modes)))))) (defalias (quote python-shell-send-buffer-switch) (function (lambda nil "Send buffer content to shell and switch to it in insert mode." (interactive) (python-shell-send-buffer) (python-shell-switch-to-shell) (evil-insert-state)))) (defalias (quote python-shell-send-defun-switch) (function (lambda nil "Send function content to shell and switch to it in insert mode." (interactive) (python-shell-send-defun nil) (python-shell-switch-to-shell) (evil-insert-state)))) (defalias (quote python-shell-send-region-switch) (function (lambda (start end) "Send region content to shell and switch to it in insert mode." (interactive "r") (python-shell-send-region start end) (python-shell-switch-to-shell) (evil-insert-state)))) (defalias (quote python-start-or-switch-repl) (function (lambda nil "Start and/or switch to the REPL." (interactive) (python-shell-switch-to-shell) (evil-insert-state)))) (setq compile-command nil) (defalias (quote spacemacs/python-execute-file) (function (lambda (arg) "Execute a python script in a shell." (interactive "P") (setq universal-argument t) (if arg (call-interactively (quote compile)) (setq compile-command (format "python %s" ...)) (compile compile-command t) (save-current-buffer (set-buffer ...) (inferior-python-mode)))))) (defalias (quote spacemacs/python-execute-file-focus) (function (lambda (arg) "Execute a python script in a shell and switch to the shell buffer in\n`insert state'." (interactive "P") (spacemacs/python-execute-file arg) (switch-to-buffer-other-window "*compilation*") (end-of-buffer) (evil-insert-state)))) (spacemacs/declare-prefix-for-mode (quote python-mode) "mc" "execute") (spacemacs/declare-prefix-for-mode (quote python-mode) "md" "debug") (spacemacs/declare-prefix-for-mode (quote python-mode) "mh" "help") (spacemacs/declare-prefix-for-mode (quote python-mode) "mg" "goto") (spacemacs/declare-prefix-for-mode (quote python-mode) "ms" "send to REPL") (spacemacs/declare-prefix-for-mode (quote python-mode) "mr" "refactor") (spacemacs/declare-prefix-for-mode (quote python-mode) "mv" "pyenv") (spacemacs/declare-prefix-for-mode (quote python-mode) "mV" "pyvenv") (spacemacs/set-leader-keys-for-major-mode (quote python-mode) "'" (quote python-start-or-switch-repl) "cc" (quote spacemacs/python-execute-file) "cC" (quote spacemacs/python-execute-file-focus) "db" (quote spacemacs/python-toggle-breakpoint) "ri" (quote spacemacs/python-remove-unused-imports) "sB" (quote python-shell-send-buffer-switch) "sb" (quote python-shell-send-buffer) "sF" (quote python-shell-send-defun-switch) "sf" (quote python-shell-send-defun) "si" (quote python-start-or-switch-repl) "sR" (quote python-shell-send-region-switch) "sr" (quote python-shell-send-region)) (if (eq dotspacemacs-editing-style (quote vim)) (progn (define-key inferior-python-mode-map (kbd "C-j") (quote comint-next-input)) (define-key inferior-python-mode-map (kbd "C-k") (quote comint-previous-input)) (define-key inferior-python-mode-map (kbd "C-r") (quote comint-history-isearch-backward)) (define-key inferior-python-mode-map (kbd "C-l") (quote spacemacs/comint-clear-buffer)))) (define-key inferior-python-mode-map (kbd "C-c M-l") (quote spacemacs/comint-clear-buffer))))
  python/init-python()
  funcall(python/init-python)
  (let* ((pkg-name (eieio-oref pkg (quote :name))) (owner (car (eieio-oref pkg (quote :owners))))) (spacemacs-buffer/message (format "Configuring %S..." pkg-name)) (mapc (function (lambda (layer) (if (configuration-layer/layer-usedp layer) (progn (if (not ...) (spacemacs-buffer/message ...) (spacemacs-buffer/message ...) (condition-case err ... ...)))))) (eieio-oref pkg (quote :pre-layers))) (spacemacs-buffer/message (format "  -> init (%S)..." owner)) (funcall (intern (format "%S/init-%S" owner pkg-name))) (mapc (function (lambda (layer) (if (configuration-layer/layer-usedp layer) (progn (if (not ...) (spacemacs-buffer/message ...) (spacemacs-buffer/message ...) (condition-case err ... ...)))))) (eieio-oref pkg (quote :post-layers))))
  configuration-layer//configure-package([eieio-class-tag--cfgl-package python nil (python) nil nil built-in t nil nil nil nil])
  (cond ((eq (quote dotfile) (car (eieio-oref pkg (quote :owners)))) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//configure-package pkg)))
  (cond ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg (quote :protected)))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location (eieio-oref pkg (quote :location)))) (cond ((stringp location) (if (file-directory-p location) (setq load-path (cons ... load-path)) (configuration-layer//warning "Location path for package %S does not exists (value: %s)." pkg location))) ((and (eq (quote local) location) (eq (quote dotfile) (car ...))) (setq load-path (cons (file-name-as-directory ...) load-path))) ((eq (quote local) location) (let* ((owner ...) (dir ...)) (setq load-path (cons ... load-path)))))) (if (memq (eieio-oref pkg (quote :location)) (quote (local site built-in))) nil (configuration-layer//activate-package pkg-name)) (cond ((eq (quote dotfile) (car (eieio-oref pkg (quote :owners)))) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//configure-package pkg)))))
  (let ((pkg (configuration-layer/get-package pkg-name))) (cond ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg (quote :protected)))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location (eieio-oref pkg (quote :location)))) (cond ((stringp location) (if (file-directory-p location) (setq load-path ...) (configuration-layer//warning "Location path for package %S does not exists (value: %s)." pkg location))) ((and (eq ... location) (eq ... ...)) (setq load-path (cons ... load-path))) ((eq (quote local) location) (let* (... ...) (setq load-path ...))))) (if (memq (eieio-oref pkg (quote :location)) (quote (local site built-in))) nil (configuration-layer//activate-package pkg-name)) (cond ((eq (quote dotfile) (car (eieio-oref pkg ...))) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//configure-package pkg))))))
  (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (spacemacs-buffer/loading-animation) (let ((pkg (configuration-layer/get-package pkg-name))) (cond ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg (quote :protected)))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location (eieio-oref pkg ...))) (cond ((stringp location) (if ... ... ...)) ((and ... ...) (setq load-path ...)) ((eq ... location) (let* ... ...)))) (if (memq (eieio-oref pkg (quote :location)) (quote (local site built-in))) nil (configuration-layer//activate-package pkg-name)) (cond ((eq (quote dotfile) (car ...)) (spacemacs-buffer/message (format "%S is configured in the dotfile." pkg-name))) (t (configuration-layer//configure-package pkg)))))) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (let ((--dolist-tail-- packages) pkg-name) (while --dolist-tail-- (setq pkg-name (car --dolist-tail--)) (spacemacs-buffer/loading-animation) (let ((pkg (configuration-layer/get-package pkg-name))) (cond ((eieio-oref pkg (quote :lazy-install)) (spacemacs-buffer/message (format "%S ignored since it can be lazily installed." pkg-name))) ((and (eieio-oref pkg (quote :excluded)) (not (eieio-oref pkg ...))) (spacemacs-buffer/message (format "%S ignored since it has been excluded." pkg-name))) ((null (eieio-oref pkg (quote :owners))) (spacemacs-buffer/message (format "%S ignored since it has no owner layer." pkg-name))) ((not (cfgl-package-enabledp pkg t)) (spacemacs-buffer/message (format "%S is toggled off." pkg-name))) (t (let ((location ...)) (cond (... ...) (... ...) (... ...))) (if (memq (eieio-oref pkg ...) (quote ...)) nil (configuration-layer//activate-package pkg-name)) (cond ((eq ... ...) (spacemacs-buffer/message ...)) (t (configuration-layer//configure-package pkg)))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
  configuration-layer//configure-packages-2((abbrev ac-ispell ace-jump-helm-line ace-link ace-window adaptive-wrap aggressive-indent anaconda-mode ansi-colors archive-mode auto-compile auto-complete auto-highlight-symbol auto-yasnippet avy bookmark bracketed-paste centered-buffer-mode centered-cursor clean-aindent-mode coffee-mode column-enforce-mode comint company company-anaconda company-go company-quickhelp company-statistics company-web counsel-dash css-mode cython-mode dash-at-point default-helm-config default-ivy-config default-org-config define-word desktop diff-hl diff-mode dired dired-x doc-view dumb-jump ediff eldoc electric-indent-mode elisp-slime-nav emacs-lisp emmet-mode ...))
  configuration-layer//configure-packages((abbrev ac-ispell ace-jump-helm-line ace-link ace-window adaptive-wrap aggressive-indent anaconda-mode ansi-colors archive-mode async auto-compile auto-complete auto-highlight-symbol auto-yasnippet avy bind-key bind-map bookmark bracketed-paste centered-buffer-mode centered-cursor clean-aindent-mode coffee-mode column-enforce-mode comint company company-anaconda company-go company-quickhelp company-statistics company-web counsel-dash css-mode cython-mode dash-at-point default-helm-config default-ivy-config default-org-config define-word desktop diff-hl diff-mode diminish dired dired-x doc-view dumb-jump ediff eldoc ...))
  configuration-layer/sync()
  (if (not (version<= spacemacs-emacs-min-version emacs-version)) (message (concat "Your version of Emacs (%s) is too old. " "Spacemacs requires Emacs version %s or above.") emacs-version spacemacs-emacs-min-version) (load-file (concat (file-name-directory load-file-name) "core/core-load-paths.el")) (require (quote core-spacemacs)) (spacemacs/init) (spacemacs/maybe-install-dotfile) (configuration-layer/sync) (spacemacs-buffer/display-info-box) (spacemacs/setup-startup-hook) (require (quote server)) (if (server-running-p) nil (server-start)))
  eval-buffer(#<buffer  *load*> nil "/Users/walkman/.emacs.d/init.el" nil t)  ; Reading at buffer position 1194
  load-with-code-conversion("/Users/walkman/.emacs.d/init.el" "/Users/walkman/.emacs.d/init.el" t t)
  load("/Users/walkman/.emacs.d/init" t t)
  #[0 "�\205\266�   \306=\203��\307�\310Q\202?� \311=\204��\307�\312Q\202?�\313\307\314\315#\203*�\316\202?�\313\307\314\317#\203>�\320\321\322!D\nB�\323\202?�\316\324�\325�\324\211#\210�\324=\203e�\326\327\330\307�\331Q!\"\325�\324\211#\210�\324=\203d���\210�\203\247�\332�!\333\232\203\247�\334�!\211\335P\336�!\203\201�\211\202\214�\336�!\203\213��\202\214�\314\262��\203\245�\337��\"\203\243�\340\341��#\210\342\343!\210��\266�\f?\205\264�\314�\325\344\324\211#)\262�\207" [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" initialization format-message "`_emacs' init file is deprecated, please use `.emacs'" "~/_emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default"] 7]()
  command-line()
  normal-top-level()

@jramapuram
Copy link

@kissgyorgy : did you find a fix for this?

@kissgyorgy
Copy link
Author

Not yet. 😞

@marienz
Copy link

marienz commented Oct 6, 2016

Do you by any chance have pyenv installed, and does pyenv which ipython return the path to a working ipython?

Glancing at the code, I think spacemacs/python-setup-shell should be using the return value from (spacemacs/pyenv-executable-find "ipython") to run ipython, instead of assuming that if that call returns non-nil it can run (shell-command-to-string "ipython --version"). spacemacs/pyenv-executable-find may have found an ipython that is not on $PATH.

@jramapuram
Copy link

@marienz : Yes, I have pyenv and it does return a valid path:

➜  jramapuram@gauss ~ pyenv which ipython
/Users/jramapuram/.virtualenvs/default/bin/ipython

@kissgyorgy
Copy link
Author

I have it too:

$ pyenv which ipython
/usr/local/var/pyenv/versions/2.7.11/bin/ipython

@SyrakuShaikh
Copy link

same problem here but only occurs when I starts spacemacs from terminal.

os: archlinux 4.7.6 emacs: 25.1 spacemacs 0.200.1 ipython: valid path.

@geekplux
Copy link

same problem.

OS: mac OS
emacs: 25.1
spacemacs: 0.200.1

@evindor
Copy link

evindor commented Oct 19, 2016

Managed to fix it by setting global python to 3.5.2 - pyenv global 3.5.2 and then pip install ipython.

@jsevo
Copy link

jsevo commented Oct 19, 2016

@evindor not fixing it for me :/

Mac OSX 10.10.5
Spacemacs: 0.200.3
Emacs 25.1.1

@kissgyorgy
Copy link
Author

Not fixed for me either. I have ipython installed anyway.

@cranehuang
Copy link

@jsevo @kissgyorgy Check the PATH variable in Emacs and in Terminal shell, it may be different. I use pyenv and zsh, and I find that PATH in emacs doesn't contain the pyenv path config, but PATH in shell does. To solve this, suppose you use zsh, you can create a ".zshenv" file, and put the PATH config in it, it should work. I found this solution from the Spacemacs'FAQ part. See the picture:
14768771-d83e-488e-9f9f-185384cd6be4

@jbyler
Copy link
Contributor

jbyler commented Sep 14, 2017

I had pyenv installed, but don't use it. pyenv which ipython gave me this error:

pyenv: version `' is not installed (set by /Users/.../.pyenv/version)

Since I don't use it, I just did brew unlink pyenv and the Spacemacs startup error went away.

@braham-snyder
Copy link
Contributor

FWIW: I don't use pyenv, nor did I have it installed. ipython --version from my terminal printed:

Failed to execute process '/usr/local/bin/ipython'. Reason:
The file '/usr/local/bin/ipython' specified the interpreter '/usr/local/opt/python/bin/python2.7', which is not an executable command.

pip install --upgrade ipython updated ipython, which seems to have done the trick.

@jarandaf
Copy link

I was using zsh shell with pyenv and to make it work had to configure the following:

(setenv "SHELL" "/bin/zsh")
(setq shell-file-name "/bin/zsh")

@bersace
Copy link

bersace commented Dec 12, 2018

Hi, I hit this bug when upgraded to Debian Buster, using emacs daemon, but only when reloading with SPC f e R. I don't want ipython. pyenv shims directory is in my PATH from my .profile that way : https://gitlab.com/bersace/dotfiles/blob/master/files/.profile#L50-54 . Any clue on this ?

@bersace
Copy link

bersace commented Dec 12, 2018

I have this issue with both no ipython, ipython installed in ~/.local/bin or in /usr/bin with debian package.

@bersace
Copy link

bersace commented Dec 12, 2018

Hi all, i may have found the root of the issue. .spacemacs.env was not up to date, and overrides pyenv and path with wrongs values. Renaming .spacemacs.env fixed the bug. Does it help anyone too ?

@or
Copy link

or commented Jul 5, 2019

I ran into this as well. I ran ielm (SPC SPC ielm), then

ELISP> (spacemacs/pyenv-executable-find "ipython")
"pyenv: version `3.7.0' is not installed (set by PYENV_VERSION environment variable)"

Then found PYENV_VERSION=3.7.0 in ~/.spacemacs.env and removed it. I suspect a similar thing could happen if there were an old .python-version lurking around somewhere.

This could report a more useful error message. Might be small enough to practice a bit of elisp, so I'll try to add it. :)

@lalitmee
Copy link

lalitmee commented Jan 3, 2020

This fixed this issue for me. Thanks @braham-snyder 😄

@YujiShen
Copy link

YujiShen commented Mar 1, 2020

Hi all, i may have found the root of the issue. .spacemacs.env was not up to date, and overrides pyenv and path with wrongs values. Renaming .spacemacs.env fixed the bug. Does it help anyone too ?

@bersace Thanks!!! Prevent me to waste all my day on this...

@github-actions
Copy link

github-actions bot commented Mar 1, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Bug tracker - stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests