[Bug 1549507] Re: vim in xenial not compiled with python support

Olli Niemi 1549507 at bugs.launchpad.net
Fri May 20 05:23:30 UTC 2016


I just tried vim-nox (is that for "no X"?) and it seems Python 3 support
works there. I had to use the "let g:UltiSnipsUsePythonVersion = 3"
definition there because the autodetection did not work. For Powerline I
installed powerline and python3-powerline packages and used the
following configuration:

let powerlinecmd=substitute(system("which powerline"), '\n\+$', '', '')
if !empty(glob(powerlinecmd))
    python3 from powerline.vim import setup as powerline_setup
    python3 powerline_setup()
    python3 del powerline_setup
endif

Also: vim-plug seems to be working in parallel mode with no
configuration needed. The default Python is still version 2 in Ubuntu so
version 3 needs to be defined manually.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to vim in Ubuntu.
https://bugs.launchpad.net/bugs/1549507

Title:
  vim in xenial not compiled with python support

Status in vim package in Ubuntu:
  Fix Released

Bug description:
  vim in xenial as of Feb 24, 2016 is missing python support. This has
  been present in all previous builds of vim at least since 14.04. For
  me, this makes the vundle-installed plugin ultisnips complain as
  follows:

  UltiSnips requires py >= 2.7 or py3
  Press ENTER or type command to continue

  I'm requesting that vim be modified to include python support

  Ubuntu xenial snapshot:
  vim --version |grep python
  +cryptv          +linebreak       -python          +viminfo
  +cscope          +lispindent      -python3         +vreplace

  Ubuntu 14.04
  vim --version |grep pyth
  +cryptv          +linebreak       +python          +viminfo
  +cscope          +lispindent      -python3         +vreplace
  Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl    -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

  
  Ubuntu Xenial vim version complete details

  root at ubuntu1604:/tmp # vim --version
  VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 18 2016 11:55:21)
  Included patches: 1-963
  Modified by pkg-vim-maintainers at lists.alioth.debian.org
  Compiled by pkg-vim-maintainers at lists.alioth.debian.org
  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          +viminfo
  +cscope          +lispindent      -python3         +vreplace
  +cursorbind      +listcmds        +quickfix        +wildignore
  +cursorshape     +localmap        +reltime         +wildmenu
  +dialog_con      -lua             +rightleft       +windows
  +diff            +menu            -ruby            +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: "$VIM/vimrc"
       user vimrc file: "$HOME/.vimrc"
   2nd user vimrc file: "~/.vim/vimrc"
        user exrc file: "$HOME/.exrc"
    fall-back for $VIM: "/usr/share/vim"
  Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -Wdate-time  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
  Linking: gcc   -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux -lacl -lattr -lgpm -ldl

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: vim 2:7.4.963-1ubuntu4
  ProcVersionSignature: Ubuntu 4.4.0-6.21-generic 4.4.1
  Uname: Linux 4.4.0-6-generic x86_64
  ApportVersion: 2.20-0ubuntu3
  Architecture: amd64
  Date: Wed Feb 24 22:15:56 2016
  Ec2AMI: ami-ac3cdecc
  Ec2AMIManifest: (unknown)
  Ec2AvailabilityZone: us-west-2c
  Ec2InstanceType: t2.small
  Ec2Kernel: unavailable
  Ec2Ramdisk: unavailable
  ProcEnviron:
   SHELL=/bin/bash
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
  SourcePackage: vim
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1549507/+subscriptions



More information about the foundations-bugs mailing list