Youcompleteme: YouCompleteMe unavailable: requires Vim compiled with Python 2.x support

Created on 30 Dec 2015  Â·  15Comments  Â·  Source: ycm-core/YouCompleteMe

YouCompleteMe unavailable: requires Vim compiled with Python 2.x support

i have this problem after installing YouComplateme using Vim-Plug in neovim on ubuntu 14.04.

Most helpful comment

@micbou I followed but I made a blunder using both "sudo" and "--user". My bad.

To summarise (assuming you are running Ubuntu 12.04 or later) you should run:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim
sudo apt-get install python-dev python-pip python3-dev python3-pip

And for Python support:

pip install --user -U neovim
pip3 install --user -U neovim

Or, to make it systemwide (generally it's frown upon to use sudo pip install ...):

sudo pip install -U neovim
suod pip3 install -U neovim

For any updates on the installation see: https://github.com/neovim/neovim/wiki/Installing-Neovim#ubuntu and https://neovim.io/doc/user/provider.html#provider-python

To verify the setup run:

python -c "import neovim"
python3 -c "import neovim"

All 15 comments

thanks @micbou .

I am Reinstalling neovim using pip like this instruction. because default instalation instruction neovim for ubuntu using ppa repository.

I'm having this error but both links in this thread are not working anymore.. Any help?

EDIT: For posterity sake, here is the current link: https://neovim.io/doc/user/provider.html#provider-python

Please carefully read README.md and if you still have a problem read CONTRIBUTING.md

On 13 Aug 2016, at 11:49, partik1 [email protected] wrote:

I'm having this error but both links in this thread are not working anymore.. Any help?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

the same here. I have freshly installed Mint 18. I followed the installation instruction (https://github.com/neovim/neovim/wiki/Installing-Neovim#ubuntu) and bumped into "YouCompleteMe unavailable: requires Vim compiled with Python (2.6+ or 3.3+) support":

Error detected while processing /home/nad2000/dotfiles/.vim/init.vim:
line   12:
E117: Unknown function: provider#python#Call
YouCompleteMe unavailable: requires Vim compiled with Python (2.6+ or 3.3+) support

@nad2000 Did you follow the instructions for using Python 2/3 plugins with Neovim?

@micbou I followed but I made a blunder using both "sudo" and "--user". My bad.

To summarise (assuming you are running Ubuntu 12.04 or later) you should run:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim
sudo apt-get install python-dev python-pip python3-dev python3-pip

And for Python support:

pip install --user -U neovim
pip3 install --user -U neovim

Or, to make it systemwide (generally it's frown upon to use sudo pip install ...):

sudo pip install -U neovim
suod pip3 install -U neovim

For any updates on the installation see: https://github.com/neovim/neovim/wiki/Installing-Neovim#ubuntu and https://neovim.io/doc/user/provider.html#provider-python

To verify the setup run:

python -c "import neovim"
python3 -c "import neovim"

@nad2000 this does not help on Ubuntu

@tastyminerals try to run:

python -c "import neovim"
python3 -c "import neovim"  ## if you are using Python3

Cheers!

sudo apt-get install vim-nox
vim-nox has python support which will enable python.

Having this problem on updating youcompleteme (worked previously):

Environment: neovim (v0.3.4), with no special python settings (checkhealth finds python), youcompleteme from git

  • last working version: commit 113787cc
  • first broken version: commit d4e3d85f

haven't tried bisecting yet, will do once I have time

We've already had a few reports. #3306 is currently running the tests and once they pass it will be merged.

Sorry to necro, but I'm running into this problem again.

I'm running nvim version 0.4.0-dev, build git201909072024-158b780-6e51973.

I'm running YCM commit 5274b73fc26deb5704733e0efbb4b2d53dc6dc9c.

I've gone and uninstalled/reinstalled pynvim and made sure that there aren't any old neovim installs lying around.

When I run :checkhealth, both the python2 and python3 checks come back green.

I'm still getting this message on startup:

YouCompleteMe unavailable: requires Vim compiled with Python (2.7.1+ or 3.5.1+) support. 

It's a neovim bug.

See https://github.com/neovim/neovim/pull/10942#issuecomment-529479500 and #3484

Thank you for the clarification!

Was this page helpful?
0 / 5 - 0 ratings