tell-k / vim-autopep8

autopep8 plugin for Vim
http://www.vim.org/scripts/script.php?script_id=4614
MIT License
277 stars 51 forks source link

Problems installing #38

Closed jpnadas closed 4 years ago

jpnadas commented 5 years ago

Hi,

I am getting the error "Not an editor command: Autopep8 " when trying to run :Autopep8 on nvim. I also get "Unknown function: Autopep8" when running :call Autopep8().

running :help autopep8 opens the help documentation normally in nvim.

I installed the plugin via dein by adding dein#add('tell-k/vim-autopep8') to my init.vim file and running :call dein#install(). I have other plugins which work fine via dein installation.

I have installed autopep8 and can run it normally via command line.

Alternatively I have tried cloning this repo into ~/.vim/bundle/, but I get the same error in both vim and nvim.

In vim I get an "Sorry, no help for autopep8" when running :help autopep8.

I am fairly new to vim, so I might be missing something trivial. Does anyone have an idea of what I am doing wrong?

Thanks.

dcr309duan commented 5 years ago

I have the same problem, anyone can help~

gonzaloamadio commented 4 years ago

I have installed with vim-plug , and also following instructions, but have this error:

Error detected while processing function Autopep8:
line   11:
File autopep8 not found. Please install it first.

Some help?

tammarut commented 4 years ago

Same problem. Any help?

jpnadas commented 4 years ago

It has been a long time since I opened this and I since then I switched to other plugin managers and I no longer have the error, so I solved it before.

In any case, looking back, it looks like the problem is not having the program autopep8 installed, not the plugin. To solve it, simply run pip install --user autopep8 or if you want it globally, sudo pip install autopep8.