ets-labs / python-vimrc

VIM Configuration for Python / Cython / C Development
BSD 3-Clause "New" or "Revised" License
652 stars 343 forks source link

can not install this three plugin for example : 'Valloric/YouCompleteMe #35

Open nmww opened 6 years ago

nmww commented 6 years ago

default


  Plugin 'klen/python-mode'             |~                                      
  Plugin 'scrooloose/syntastic'`

can not install this three plugin
for example  :  'Valloric/YouCompleteMe 
rmk135 commented 6 years ago

Hi @nmww ,

What kind of error do you get? Can you, please, make :messages and post its output?

wj-Mcat commented 4 years ago

@rmk135 I install by the setup.py file, it occurs error:

Traceback (most recent call last):
  File "<string>", line 27, in <module>
  File "/home/users/wujingjing/.vim/bundle/YouCompleteMe/python/ycm/base.py", line 18, in <module>
    from ycm import vimsupport
  File "/home/users/wujingjing/.vim/bundle/YouCompleteMe/python/ycm/vimsupport.py", line 184
    f"bufnr('{ EscapeForVim( os.path.realpath( filename ) ) }', "
                                                                ^
SyntaxError: invalid syntax
cydanil commented 3 years ago

It seems that your vim uses Python2 instead of the expected Python3.

Here's a post on an issue with more details: https://github.com/ets-labs/python-vimrc/issues/39#issuecomment-607429122