python-vimrc icon indicating copy to clipboard operation
python-vimrc copied to clipboard

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

Open nmww opened this issue 6 years ago • 3 comments

default

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

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

nmww avatar Jun 19 '18 13:06 nmww

Hi @nmww ,

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

rmk135 avatar Jun 19 '18 15:06 rmk135

@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

wj-Mcat avatar Aug 22 '20 09:08 wj-Mcat

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

cydanil avatar Jan 20 '21 11:01 cydanil