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

Does not work when python2 is not available

Open bartlibert opened this issue 8 years ago • 3 comments

With the introduction of vim8, the debian packagers have decided to remove "python2" support from vim, completely switching to python3. This plugin does not work anymore. It throws the following error:

Error detected while processing vim_geeknote.vim: line 1: E319: Sorry, the command is not available in this version: python import sys line 2: E319: Sorry, the command is not available in this version: python import vim line 3: E319: Sorry, the command is not available in this version: python sys.path.append(vim.eval('expand(":h")'))

bartlibert avatar Sep 30 '16 10:09 bartlibert

I had the same error with vim 7.4 on Ubuntu 16.04. Python 2.7 was installed. RESOLVED by uninstalling vim-gnome and installing vim-gnome-py2. sudo aptitude remove vim-gnome && sudo aptitude install vim-gnome-py2

DataThinkMonkey avatar Nov 24 '16 03:11 DataThinkMonkey

Such a package does not exist on debian, so compiling vim myself was the only option. However, in the meanwhile I have discovered that the evernote sdk is not available for python 3 yet, hence geeknote itself is not available, so probably this will have to wait a bit longer.

bartlibert avatar Nov 24 '16 07:11 bartlibert

The Debian package vim.nox-py2 also provides python2 support.

andmalc avatar Dec 09 '16 21:12 andmalc