JBakamovic/yavide

vim-gnome on Debian buster links with python3

Opened this issue · 3 comments

gvim --version | grep python
+cryptv          +linebreak       -python          +viminfo
+cscope          +lispindent      +python3         +vreplace
Linking: gcc   -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim   -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl  -L/usr/lib -llua5.2 -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/x86_64-linux-gnu/perl/5.26/CORE -lperl -ldl -lm -lpthread -lcrypt  -L/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu -lpython3.6m -lpthread -ldl -lutil -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lieee -lm -lruby-2.3 -lpthread -lgmp -ldl -lcrypt -lm

yavide works on python2.6

any way to fix this instead of rebuilding vim?

Yes, that's correct. It requires Python2.

Ubuntu users also experience similar issues and as far as I understand some make it work by installing additional distro-specific package which includes vim compiled with Python2 support and others do it by rebuilding it themselves. I.e. this issue

I think you should really consider upgrading the plugin to use Python 3 for all the obvious reasons (i.e. Python 2 is phasing out rapidly).

On the other hand, for those who are interested, on debian systems try the package gvim-gtk3-py2. Better yet, try installing the metapackage gvim, and apt will spit out all available packages that you can install.