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

autopep8 command not found #13

Open
snowleung opened this issue Jul 30, 2015 · 8 comments
Open

autopep8 command not found #13

snowleung opened this issue Jul 30, 2015 · 8 comments

Comments

@snowleung
Copy link

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
Copy link
Owner

paetzke commented Aug 16, 2015

Could you try this:

M-x shell-command RET
autopep8 RET

What happens when you do this?

@snowleung
Copy link
Author

7ac2f992-d1ab-4221-a1ba-c214029c221f

@flexgrip
Copy link

flexgrip commented Oct 9, 2015

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

@mcobzarenco
Copy link

Same here +1

@mcobzarenco
Copy link

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
Copy link
Author

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

@wbolster
Copy link

wbolster commented Feb 1, 2018

try exec-path-from-shell.

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

@ideasman42
Copy link

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.

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

6 participants