YouCompleteMe unavailable: [Errno 2] No such file or directory

832 views
Skip to first unread message

Jai Asher

unread,
Jun 2, 2016, 4:16:01 PM6/2/16
to ycm-users
Hi,
    I followed the installation instructions on the webpage https://github.com/Valloric/YouCompleteMe, and the installation was successful, but when I try to open a file using vim I get the error
    "YouCompleteMe unavailable: [Errno 2] No such file or directory"
     
     I tried to get more information using YcmDebugInfo but I get an error
  "Not an editor command: YcmDebugInfo"
    
     Can someone suggest what I can do to get this error resolved and get YouCompleteMe to work.


Regards,
Jai

Michel Bouard

unread,
Jun 2, 2016, 4:21:55 PM6/2/16
to Jai Asher, ycm-users
Hi,

Is there more information on the error when running :messages in Vim?

--
You received this message because you are subscribed to the Google Groups "ycm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ycm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ycm-users/b0d3f435-e44a-4a34-b012-619d82efe96c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jai Asher

unread,
Jun 2, 2016, 4:28:30 PM6/2/16
to ycm-users, jai.a...@gmail.com
Yes There is an error when I run :messages in Vim

Traceback (most recent call last):
  File "<string>", line 24, in <module>
  File "/home/jai1/.vim/bundle/YouCompleteMe/autoload/../python/ycm/setup.py", line 53, in SetUpYCM
    return YouCompleteMe( user_options_store.GetAll() )
  File "/home/jai1/.vim/bundle/YouCompleteMe/autoload/../python/ycm/youcompleteme.py", line 122, in __init__
    self._SetupServer()
  File "/home/jai1/.vim/bundle/YouCompleteMe/autoload/../python/ycm/youcompleteme.py", line 140, in _SetupServer
    args = [ paths.PathToPythonInterpreter(),
  File "/home/jai1/.vim/bundle/YouCompleteMe/autoload/../python/ycm/paths.py", line 48, in memoizer
    cache[ key ] = obj( *args, **kwargs )
  File "/home/jai1/.vim/bundle/YouCompleteMe/autoload/../python/ycm/paths.py", line 60, in PathToPythonInterpreter
    if IsPythonVersionCorrect( python_interpreter ):
  File "/home/jai1/.vim/bundle/YouCompleteMe/autoload/../python/ycm/paths.py", line 131, in IsPythonVersionCorrect
    return utils.SafePopen( command ).wait() == 0
  File "/home/jai1/.vim/bundle/YouCompleteMe/python/ycm/../../third_party/ycmd/ycmd/utils.py", line 304, in SafePopen
    return subprocess.Popen( args, **kwargs )
  File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Michel Bouard

unread,
Jun 2, 2016, 4:33:14 PM6/2/16
to Jai Asher, ycm-users
Did you set the g:ycm_server_python_interpreter variable? To which value? Are you sure this value is a path that points to a Python interpreter?

Reply all
Reply to author
Forward
0 new messages