Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG : raspberrypi install failed ,cannot get python version #357

Open
timgogochen opened this issue Feb 21, 2019 · 3 comments
Open

BUG : raspberrypi install failed ,cannot get python version #357

timgogochen opened this issue Feb 21, 2019 · 3 comments

Comments

@timgogochen
Copy link

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 = ''
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.

@CodingPoeta
Copy link

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

@ghost
Copy link

ghost commented Mar 15, 2019

Are you using a vim with the support of python?

you can see :version

Maybe you need a vim compiled with python support.

@Zhang21
Copy link

Zhang21 commented Apr 1, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants