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
- pip3 install pynvim https://github.com/roxma/vim-hug-neovim-rpc/issues/28 — committed to oalders/dot-files by oalders 5 years ago
by direct reinstalling
greenletlibrary or installingsudo pacman -S python-greenletare not worked for me because both use the precompiled wheel/binary.As per pip install guidance this solution worked for me
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-greenletit works, but when I use it inside virtualenv it fails with above errorsFor those who found this ticket trying to solve this kind of crash:
Don’t use the
pipversion ofgreenleton Arch.@korsmakolnikov Please read this. https://github.com/roxma/vim-hug-neovim-rpc/issues/36
While pacman does install
greenlet, it only does so in the same place aspipwould. Loading a virtualenv discards packages such asgreenletso you have to link the Arch version into your virtualenv as well.Yes.
You need to reinstall
greenletlibrary.