2017-05-18 14:39:55,627 - DEBUG - No global extra conf, not calling method YcmCorePreload
2017-05-18 14:39:55,627 - ERROR - dlopen(/Users/theonlygusti/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycm_core.so, 2): Library not loaded: /Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Users/theonlygusti/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so
Reason: image not found
Traceback (most recent call last):
File "/Users/theonlygusti/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/server_utils.py", line 95, in CompatibleWithCurrentCore
ycm_core = ImportCore()
File "/Users/theonlygusti/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/server_utils.py", line 87, in ImportCore
import ycm_core as ycm_core
ImportError: dlopen(/Users/theonlygusti/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycm_core.so, 2): Library not loaded: /Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Users/theonlygusti/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so
Reason: image not found
No idea how to fix this.
$ which vim
/usr/local/bin/vim
$ which python
/usr/local/bin/python
$ which python3
/usr/local/bin/python3
$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled May 17 2017 10:08:18)
MacOS X (unix) version
Included patches: 1-599
Compiled by Homebrew
Huge version without 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
-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 +vertsplit
+cmdline_hist +keymap +persistent_undo +virtualedit
+cmdline_info +lambda +postscript +visual
+comments +langmap +printer +visualextra
+conceal +libcall +profile +viminfo
+cryptv +linebreak +python +vreplace
+cscope +lispindent -python3 +wildignore
+cursorbind +listcmds +quickfix +wildmenu
+cursorshape +localmap +reltime +windows
+dialog_con -lua +rightleft +writebackup
+diff +menu +ruby -X11
+digraphs +mksession +scrollbind -xfontset
-dnd +modify_fname +signs -xim
-ebcdic +mouse +smartindent -xpm
+emacs_tags -mouseshape +startuptime -xsmp
+eval +mouse_dec +statusline -xterm_clipboard
+ex_extra -mouse_gpm -sun_workshop -xterm_save
+extra_search -mouse_jsbterm +syntax
+farsi +mouse_netterm +tag_binary
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang -L. -L/usr/local/lib -L/usr/local/lib -o vim -lm -lncurses -liconv -framework Cocoa -fstack-protector -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -F/usr/local/opt/python/Frameworks -framework Python -lruby.2.0.0 -lobjc
Which Python did you use to build YCM? Could you paste the output of the install.py script? Did you set the g:ycm_server_python_interpreter option? If so, to which value?
I just installed it and got the same error.
These are the logs i found, not really sure they are related to the problem:
vim --version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 8 2016 11:54:26) Included patches: 1-1718
response = future.result() File "/home/dimas/.vim/bundle/YouCompleteMe/third_party/pythonfutures/concurrent/futures/_base.py", line 404, in result return self.__get_result() File "/home/dimas/.vim/bundle/YouCompleteMe/third_party/pythonfutures/concurrent/futures/_base.py", line 356, in __get_result raise self._exception ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=34025): Max retries exceeded with url: /debug_info (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f6e6405fc90>: Failed to establish a new connection: [Errno 111] Connection refused',)) ~
Traceback (most recent call last): File "/home/dimas/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/server_utils.py", line 95, in CompatibleWithCurrentCore ycm_core = ImportCore() File "/home/dimas/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/server_utils.py", line 87, in ImportCore import ycm_core as ycm_core ImportError: libtinfo.so.5: cannot open shared object file: No such file or directory
`
@dimasgb7 That's a different issue. You can fix it by passing the --system-libclang flag to the install.py script. See #2579.
@micbou I didn't set g:ycm_server_python_interpreter
@theonlygusti In most cases that shouldn't be necessary. So it is of interest of the development team for you to answer all of @micbou's questions. But also to tell us explicitly if you managed to get YCM to work, so that we could eventually close thte bug report.
Wow!
cd-ing to ~/.vim/bundle/YouCompleteMe and running install.py fixed the issue.
@bstaletic I realise that, I was reporting information as soon as possible. Running install.py takes time, saying that I don't have a variable set is much faster.
cd-ing to ~/.vim/bundle/YouCompleteMe and running install.py fixed the issue.
Let's close then.
Most helpful comment
Wow!
cd-ing to
~/.vim/bundle/YouCompleteMeand runninginstall.pyfixed the issue.