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

windows server2012: file-error "Searching for program" "No such file or directory" "python" #582

Closed
kalinlau opened this issue May 31, 2018 · 5 comments

Comments

@kalinlau
Copy link

kalinlau commented May 31, 2018

Hi, I met this problem on my win 2012server. Information is listed below and sorry for the paste format here:

Debugger entered--Lisp error: (file-error "Searching for program" "No such file or directory" "python")
make-process(:name "anaconda-mode" :buffer #<buffer anaconda-mode> :command ("python" "-c" "\nimport os, sys\ndirectory = os.path.expanduser(sys.argv[-1])\nif not os.path.exists(directory):\n os.makedirs(directory)\n" "/.emacs.d/anaconda-mode/0.1.11"))
apply(make-process (:name "anaconda-mode" :buffer #<buffer anaconda-mode> :command ("python" "-c" "\nimport os, sys\ndirectory = os.path.expanduser(sys.argv[-1])\nif not os.path.exists(directory):\n os.makedirs(directory)\n" "
/.emacs.d/anaconda-mode/0.1.11")))
start-process("anaconda-mode" #<buffer anaconda-mode> "python" "-c" "\nimport os, sys\ndirectory = os.path.expanduser(sys.argv[-1])\nif not os.path.exists(directory):\n os.makedirs(directory)\n" "/.emacs.d/anaconda-mode/0.1.11")
apply(start-process "anaconda-mode" #<buffer anaconda-mode> "python" ("-c" "\nimport os, sys\ndirectory = os.path.expanduser(sys.argv[-1])\nif not os.path.exists(directory):\n os.makedirs(directory)\n" "
/.emacs.d/anaconda-mode/0.1.11"))
start-file-process("anaconda-mode" #<buffer anaconda-mode> "python" "-c" "\nimport os, sys\ndirectory = os.path.expanduser(sys.argv[-1])\nif not os.path.exists(directory):\n os.makedirs(directory)\n" "/.emacs.d/anaconda-mode/0.1.11")
apply(start-file-process "anaconda-mode" #<buffer anaconda-mode> "python" ("-c" "\nimport os, sys\ndirectory = os.path.expanduser(sys.argv[-1])\nif not os.path.exists(directory):\n os.makedirs(directory)\n" "
/.emacs.d/anaconda-mode/0.1.11"))
start-pythonic(:process "anaconda-mode" :buffer "anaconda-mode" :sentinel #[514 "\301��\300#\207" [#[0 "\302\300\301"\207" ["eldoc" anaconda-mode-eldoc-callback anaconda-mode-jsonrpc] 3] anaconda-mode-ensure-directory-sentinel] 6 "\n\n(fn PROCESS EVENT)"] :args ("-c" "\nimport os, sys\ndirectory = os.path.expanduser(sys.argv[-1])\nif not os.path.exists(directory):\n os.makedirs(directory)\n" "~/.emacs.d/anaconda-mode/0.1.11"))
anaconda-mode-ensure-directory(#[0 "\302\300\301"\207" ["eldoc" anaconda-mode-eldoc-callback anaconda-mode-jsonrpc] 3])
anaconda-mode-start(#[0 "\302\300\301"\207" ["eldoc" anaconda-mode-eldoc-callback anaconda-mode-jsonrpc] 3])
anaconda-mode-call("eldoc" anaconda-mode-eldoc-callback)
anaconda-mode-eldoc-function()
eldoc-print-current-symbol-info()

I use anaconda3 and do not add its path to environemnt var like PATH.
How can i solve this or, at least, shutdown this yelling .

@kalinlau
Copy link
Author

add to the commet before, I use M-: exec-path to check what $PATH is used in this windows server, after that i manually add the path of anaconda's python.exe to the $PATH, check the Emacs's path again and nothing changed, Backtrace still give this

Debugger entered--Lisp error: (file-error "Searching for program" "No such file or directory" "python")

@purcell
Copy link
Owner

purcell commented Jun 3, 2018

Thanks for reporting this. It appears due to the code in pythonic.el, and I've filed an issue there on your behalf. I'll close this one because I can't fix it here. :-)

@purcell purcell closed this as completed Jun 3, 2018
@kalinlau
Copy link
Author

kalinlau commented Jun 5, 2018

Thanks for your help.

@purcell
Copy link
Owner

purcell commented Jun 11, 2018

This has apparently been fixed upstream, so maybe try updating your packages. :-)

@kalinlau
Copy link
Author

I'll try, thx~

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

No branches or pull requests

2 participants