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

YouCompleteme unavailable : no module named future #2271

Closed
okadhem opened this issue Aug 5, 2016 · 15 comments
Closed

YouCompleteme unavailable : no module named future #2271

okadhem opened this issue Aug 5, 2016 · 15 comments

Comments

@okadhem
Copy link

okadhem commented Aug 5, 2016

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
can someone help me with this plz

@micbou
Copy link
Collaborator

micbou commented Aug 5, 2016

Please follow the instructions in CONTRIBUTING.md. In particular, these two points:

Include your OS and OS version.
Include the output of vim --version.

@okadhem okadhem closed this as completed Aug 11, 2016
@benjaminshafii
Copy link

benjaminshafii commented Aug 12, 2016

Same issue

vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug  2 2016 05:21:06)
Included patches: 1-2143
Compiled by Arch Linux
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_old_static
+arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           +mouse_urxvt     +tcl/dyn
+balloon_eval    +folding         +mouse_xterm     +termguicolors
+browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     +gettext         -mzscheme        +textobjects
+channel         -hangul_input    +netbeans_intg   +timers
+cindent         +iconv           +num64           +title
+clientserver    +insert_expand   +packages        +toolbar
+clipboard       +job             +path_extra      +user_commands
+cmdline_compl   +jumplist        +perl/dyn        +vertsplit
+cmdline_hist    +keymap          +persistent_undo +virtualedit
+cmdline_info    +lambda          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       +python/dyn      +vreplace
+cscope          +lispindent      +python3/dyn     +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con_gui  +lua/dyn         +rightleft       +writebackup
+diff            +menu            +ruby/dyn        +X11
+digraphs        +mksession       +scrollbind      -xfontset
+dnd             +modify_fname    +signs           +xim
-ebcdic          +mouse           +smartindent     +xsmp_interact
+emacs_tags      +mouseshape      +startuptime     +xterm_clipboard
+eval            +mouse_dec       +statusline      -xterm_save
+ex_extra        +mouse_gpm       -sun_workshop    -xpm
+extra_search    -mouse_jsbterm   +syntax          
+farsi           +mouse_netterm   +tag_binary      
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/etc/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -L. -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE  -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE  -lm -lncurses -lelf -lnsl    -lacl -lattr -lgpm -ldl   -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/perl5/core_perl/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc   -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lieee -lm     

4.7.0-1-ARCH

@ghost
Copy link

ghost commented Sep 1, 2016

same issue
image

instsall python 2.7.9 64 bit and install gvim gt 7.3 64 bit
finally pip install future

@ghost
Copy link

ghost commented Sep 2, 2016

I am having the same issue using Antegros latest 64bit python and gvim latest. I already installed future. What is causing this?

@micbou
Copy link
Collaborator

micbou commented Sep 5, 2016

@bentobenti @liuliangsir @FireAntJoe Could you paste the output of the following command

:py import pprint; pprint.pprint(sys.path)

in Vim (replace py by py3 if using Python 3)?

I already installed future.

You don't need to install future. It is bundled with the plugin.

@ghost
Copy link

ghost commented Sep 5, 2016

:py import pprint; pprint.pprint(sys.path)
bash: syntax error near unexpected token `sys.path'

On Mon, Sep 5, 2016 at 3:30 PM, micbou notifications@github.com wrote:

@bentobenti https://github.com/bentobenti @liuliangsir
https://github.com/liuliangsir @FireAntJoe
https://github.com/FireAntJoe Could you paste the output of the
following command

:py import pprint; pprint.pprint(sys.path)

in Vim (replace py by py3 if using Python 3)?

I already installed future.

You don't need to install future. It is bundled with the plugin.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2271 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQw3RHQZ7nB9pt6me80PviDGPeK7KEa6ks5qnHvOgaJpZM4Jdu0R
.

@micbou
Copy link
Collaborator

micbou commented Sep 5, 2016

Not in a terminal but in Vim.

@ghost
Copy link

ghost commented Sep 5, 2016

u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd/third_party/gocode',
u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd/third_party/argparse',
u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd/third_party/frozendict',
u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd/third_party/JediHTTP',
u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd/third_party/tern_runtime',
u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd/third_party/waitress',
u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd/third_party/godef',
u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd/third_party/OmniSharpServer',
u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd/third_party/requests',
u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd/third_party/racerd',
u'/home/meep/.vim/plugged/youcompleteme/third_party/requests-futures',
u'/home/meep/.vim/plugged/youcompleteme/third_party/retries',
u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd',
u'/home/meep/.vim/plugged/youcompleteme/third_party/pythonfutures',
u'/home/meep/.vim/plugged/youcompleteme/python/ycm/../../third_party/ycmd',
u'/home/meep/.vim/plugged/youcompleteme/autoload/../python',
'/usr/lib/python27.zip',
'/usr/lib/python2.7',
u'/home/meep/.vim/plugged/youcompleteme/third_party/ycmd/third_party/python-future/src',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/lib/python2.7/site-packages',
'/usr/lib/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages/wx-3.0-gtk2',
'vim_path'

On Mon, Sep 5, 2016 at 3:33 PM, micbou notifications@github.com wrote:

Not in a terminal but in Vim.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2271 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQw3RPh016yV49Hg6K4f89rGOXBvuA4Cks5qnHyJgaJpZM4Jdu0R
.

@micbou
Copy link
Collaborator

micbou commented Sep 5, 2016

Thanks. This looks good. Does the youcompleteme/third_party/ycmd/third_party/python-future folder contain the src/future/__init__.py file?

@ghost
Copy link

ghost commented Sep 5, 2016

nope

On Mon, Sep 5, 2016 at 3:54 PM, micbou notifications@github.com wrote:

Thanks. This looks good. Does the youcompleteme/third_party/
ycmd/third_party/python-future folder contain the src/future/init.py
file?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2271 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQw3REpXkSiQ0kTE90qD7WZw2RFPj3BKks5qnIGDgaJpZM4Jdu0R
.

@micbou
Copy link
Collaborator

micbou commented Sep 5, 2016

This means that the python-future submodule was not checked out. Go to YCM folder and run the following command:

git submodule update --init --recursive

Your plugin manager should have taken care of that. Which one are you using?

@ghost
Copy link

ghost commented Sep 5, 2016

vim plug

On Mon, Sep 5, 2016 at 4:14 PM, micbou notifications@github.com wrote:

This means that the python-future submodule was not checked out. Go to
YCM folder and run the following command:

git submodule update --init --recursive

Your plugin manager should have taken care of that. Which one are you
using?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2271 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQw3RG__3pGESn8hmv9XG8LjiBlYXc3fks5qnIZFgaJpZM4Jdu0R
.

@roehst
Copy link

roehst commented Jan 13, 2017

I had the same issue using Arch Linux and Neovim -- nothing under "youcompleteme/third_party/ycmd/third_party/python-future".

Installed using Vundle using only:

Plugin 'Valloric/YouCompleteMe'

Fixed with

git submodule update --init --recursive

@petrewoo
Copy link

This means that the python-future submodule was not checked out. Go to YCM folder and run the following command:

git submodule update --init --recursive

Your plugin manager should have taken care of that. Which one are you using?

When this method does not work, you can reinstall YCM and fixed this issue.

@trevor211
Copy link

I had the same issue using Arch Linux and Neovim -- nothing under "youcompleteme/third_party/ycmd/third_party/python-future".

Installed using Vundle using only:

Plugin 'Valloric/YouCompleteMe'

Fixed with

git submodule update --init --recursive

Fixed with the following 2 steps:

  1. git submodule update --init --recursive
  2. Reinstall youcompleteme:
    python3 install.py --clang-completer --clangd-completer

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants