k-vim icon indicating copy to clipboard operation
k-vim copied to clipboard

BUG : raspberrypi install failed ,cannot get python version

Open timgogochen opened this issue 7 years ago • 3 comments

Hi developer,

I face this issue , the hardware is raspberrypi 3B+ detail please check attachment

######################################## root@raspberrypi:/tmp# vi /root/k-vim/bundle/vim-isort/plugin/python_vimisort.vim UltiSnips requires py >= 2.7 or py3 YouCompleteMe unavailable: unable to load Python. Error detected while processing /root/k 1 2

-vim/bundle/vim-isort/plugin/python_vimisort.vim: line 17: E605: Exception not caught: No python support present, vim-isort will be disabled Press ENTER or type command to continue 1 if exists('g:vim_isort_python_version') 1 if g:vim_isort_python_version ==? 'python2' 2 command! -nargs=1 AvailablePython python 3 let s:available_short_python = ':py' 4 elseif g:vim_isort_python_version ==? 'python3' 5 command! -nargs=1 AvailablePython python3 6 let s:available_short_python = ':py3' 7 endif 8 else 9 if has('python') 10 command! -nargs=1 AvailablePython python 11 let s:available_short_python = ':py' 12 elseif has('python3') 13 command! -nargs=1 AvailablePython python3 14 let s:available_short_python = ':py3' 15 else 16 throw 'No python support present, vim-isort will be disabled' 17 endif 18 endif 19 20 command! Isort exec("AvailablePython isort_file()") 21 22 if !exists('g:vim_isort_map') 23 let g:vim_isort_map = '<C-i>' NORMAL ▶ ⎇ master ▶ <ython_vimisort.vim ◀ vim ◀ utf-8[unix] ◀ 1% ¶ 1/92 ㏑ : 1 ◀ ☲ [71]tra… ❮ root@raspberrypi:/tmp# python Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] on linux2 Type "help", "copyright", "credits" or "license" for more information.

timgogochen avatar Feb 21 '19 09:02 timgogochen

I've met the same problem like this...

CodingPoeta avatar Mar 11 '19 15:03 CodingPoeta

Are you using a vim with the support of python?

you can see :version

Maybe you need a vim compiled with python support.

ghost avatar Mar 15 '19 06:03 ghost

ps:
I met this because I install vim 8.1 from vim github source code


I met this issue too, so I reference:

sudo yum install python-devel
./configure --enable-pythoninterp=yes --enable-python3interp=yes && make && make install

Then, it's ok for me!

Zhang21 avatar Apr 01 '19 05:04 Zhang21