vim-hug-neovim-rpc: failed executing: pythonx import neovim (archlinux)

Im on Vim 8.1:

Following statements are true:

has('pythonx')
has('python')
has('python3')

neovim seem to be installed correctly:

Python 2.7.15 (default, May  1 2018, 20:16:04) 
[GCC 7.3.1 20180406] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import neovim
>>> 

Python 3.6.5 (default, May 11 2018, 04:00:52) 
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import neovim
>>> 

When i open vim i get this error:

[vim-hug-neovim-rpc] failed executing: pythonx import neovim
[vim-hug-neovim-rpc] Vim(pythonx):Traceback (most recent call last)

As cfg i have:

" Deoplete
set pyxversion=3
set encoding=utf-8
let g:python_host_prog = "/usr/bin/python2"
let g:python3_host_prog = "/usr/bin/python3"
let g:deoplete#enable_at_startup = 1

Plugin 'roxma/nvim-yarp'
Plugin 'roxma/vim-hug-neovim-rpc'
Plugin 'Shougo/deoplete.nvim'

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16

Commits related to this issue

Most upvoted comments

by direct reinstalling greenlet library or installing sudo pacman -S python-greenlet are not worked for me because both use the precompiled wheel/binary.

As per pip install guidance this solution worked for me
pip3 uninstall pynvim
cd ~/.local/lib/python3.7/site-packages/
rm -r greenlet-0.4.15-py3.7.egg-info greenlet.cpython-37m-x86_64-linux-gnu.so
pip3 install --user --no-binary :all: pynvim

Reference https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-no-binary https://www.archlinux.org/packages/community/x86_64/python-greenlet/files/ https://bbs.archlinux.org/viewtopic.php?id=232873

by installing sudo pacman -S python-greenlet it works, but when I use it inside virtualenv it fails with above errors

For those who found this ticket trying to solve this kind of crash:

Don’t use the pip version of greenlet on Arch.

by installing sudo pacman -S python-greenlet it works, but when I use it inside virtualenv it fails with above errors

While pacman does install greenlet, it only does so in the same place as pip would. Loading a virtualenv discards packages such as greenlet so you have to link the Arch version into your virtualenv as well.

Yes.

You need to reinstall greenlet library.