YouCompleteme unavailable : no module named future
Asked Answered
B

2

5

i am trying to install the YouCompleteMe Plugin in vim using Vundle but i get this error message : YouCompleteme unavailable : no module named future

i have vim 7.4.1910 and python 3.5.2 but i don't know if vim was built to support python3

Burdensome answered 5/8, 2016 at 13:44 Comment(2)
:echo has('python') || has('python3')Hagioscope
I'm getting the same error on Fedora 24. @Hagioscope the output from your command for is 1 (for has('python'))Barsky
R
8

its that your modules are not updated or future module is not found. to fix this. if you are using ubuntu then first go to

$ cd ~/.vim/bundle/YouCompleteMe && git submodule update --init --recursive

this will update all the modules in youcompleteme

Rhyolite answered 22/5, 2019 at 6:1 Comment(2)
Also running the install.py script in the YouCompleteMe folder helped for meShimmery
I had to do both: cd ~/.vim/bundle/YouCompleteMe ; git submodule update --init --recursive and ./install.py. Then everyone was fine.Attenuator
B
4

I had the same issue and fixed it by running pip install future. You may have to do this with sudo.

Barsky answered 19/8, 2016 at 22:34 Comment(3)
sudo -H pip install futureCurran
-H is the short version of --set-home longopt. Sudo required me to specify the -H flag in order to install this module.Curran
@JennyT-Type it is not a good idea to use sudo with pip.Lithia

© 2022 - 2024 — McMap. All rights reserved.