paetzke / py-autopep8.el

py-autopep8.el integrates autopep8 into Emacs.
GNU General Public License v3.0
79 stars 21 forks source link

autopep8 command not found #13

Open snowleung opened 9 years ago

snowleung commented 9 years ago

It's work well at emacs24.4 (GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0)) but when I use Emacs of Mac OS X(This is GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21),with GUI, display "autopep8 command not found" on the mini buffer. also, I use this M-x py-autopep8-buffer to call the function. thanks.

paetzke commented 9 years ago

Could you try this:

M-x shell-command RET
autopep8 RET

What happens when you do this?

snowleung commented 9 years ago

7ac2f992-d1ab-4221-a1ba-c214029c221f

flexgrip commented 8 years ago

Same exact thing here. Works totally fine in my terminal. But this emacs plugin does not work.

mcobzarenco commented 8 years ago

Same here +1

mcobzarenco commented 8 years ago

Right, the problem in my case was that the PATH variable was set differently in Emacs compared to the shell. @flexgrip @snowleung try:

M-x shell-command RET
echo $PATH RET

and compare it with echo $PATH in your shell.

snowleung commented 8 years ago

@mcobzarenco hey, you are right, they're different. in terminal, it seems include some ... ruby library?

wbolster commented 6 years ago

try exec-path-from-shell.

this issue can be closed as it's not a bug in this package.

ideasman42 commented 2 years ago

Melpa now points to a fork of this package maintained here: https://github.com/ideasman42/emacs-py-autopep8

This adds py-autopep8-command (defaulting to autopep8). So you can point to the location of autopep8 without it being in your path.