[Pymode]: error: Pymode requires vim compiled with +python3

403 views
Skip to first unread message

kaushal

unread,
Nov 25, 2021, 12:18:13 AM11/25/21
to vim_use
Hi,

I am running CentOS Linux release 7.9.2009 (Core) and have enabled below entry in .vimrc file

$cat .vimrc
set shiftwidth=2
set shiftround
set tabstop=4
set softtabstop=4
set noexpandtab
set number
set ruler
set noautoindent
set nosmartindent
set noincsearch
syntax enable
$

when i do vim testpythonscript.py I am facing the below Pymode error

$vim testpythonscript.py

[Pymode]: error: Pymode requires vim compiled with +python3 (exclusively). Most of features will be disabled.                                                                             0,0-1         All 

$vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 15 2020 16:44:08)
Included patches: 1-207, 209-629
Huge version without GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +syntax
+arabic          +file_in_path    +mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
-balloon_eval    +float           +mouse_urxvt     -tag_any_white
-browse          +folding         +mouse_xterm     -tcl
++builtin_terms  -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         +gettext         -mzscheme        +textobjects
-clientserver    -hangul_input    +netbeans_intg   +title
-clipboard       +iconv           +path_extra      -toolbar
+cmdline_compl   +insert_expand   +perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       +python/dyn      +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      -lua             +rightleft       +windows
+diff            +menu            +ruby/dyn        +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
+emacs_tags      -mouseshape      -sniff           -xsmp
+eval            +mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        +mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/etc"
 f-b for $VIMRUNTIME: "/usr/share/vim/vim74"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -g -pipe -Wall -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D__linux__ -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE  -Wl,-z,relro  -L/usr/local/lib -Wl,--as-needed -o vim        -lm -lnsl  -lselinux  -lncurses -lacl -lattr -lgpm -ldl   -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE  -fstack-protector  -L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc

The python3  feature is not available as per the above output. 

Please guide. Thanks in advance.

Best Regards,

Kaushal

Shlomi Fish

unread,
Nov 25, 2021, 1:26:44 AM11/25/21
to kaushal, vim...@googlegroups.com
Hi!

On Wed, 24 Nov 2021 21:18:13 -0800 (PST)
kaushal <kaushal...@gmail.com> wrote:

> Hi,
>
> I am running CentOS Linux release 7.9.2009 (Core) and have enabled below
> entry in .vimrc file
>
> $cat .vimrc
> set shiftwidth=2
> set shiftround
> set tabstop=4
> set softtabstop=4
> set noexpandtab
> set number
> set ruler
> set noautoindent
> set nosmartindent
> set noincsearch
> syntax enable
> $
>
> when i do vim testpythonscript.py I am facing the below Pymode error
>
> $vim testpythonscript.py
>
> [Pymode]: error: Pymode requires vim compiled with +python3 (exclusively).
> Most of features will be disabled.
> 0,0-1 All

Do you mean https://github.com/python-mode/python-mode ?

>
> $vim --version
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 15 2020 16:44:08)
> Included patches: 1-207, 209-629

This is an old version of vim. you can try building newer cpython3 and vim
using https://en.wikipedia.org/wiki/GNU_Compiler_Collection / etc.using
"--prefix=$HOME/apps/myprefix".
--

Shlomi Fish https://www.shlomifish.org/
https://github.com/shlomif/validate-your-html - Validate Your HTML

Real programmers use a nice editor and a nice programming language and get it
done in less than O(N!).
— vanguard on Freenode’s ##programming

Please reply to list if it's a mailing list post - https://shlom.in/reply .
Reply all
Reply to author
Forward
0 new messages