有馬総一郎のブログ

(彼氏の事情)

2021年12月15日 10:29:13 JST - 1 minute read - Vim

Pythonをアップデートしたら依存してるNeovimのプラグインが動かなくなった

pythonのアップデートしたら、nvimでpython依存のプラグインが動作しなくなってしまった…

function provider#python3#Call[9]..remote#host#Require[10]..provider#pythonx#Require[14]..provider#Poll, 行 7
Vim(if):Error invoking 'poll' on channel 3:<00>ch 3 was closed by the client                                                                                                 
Failed to load python3 host. You can try to see what happened by starting nvim with $NVIM_PYTHON_LOG_FILE set and opening the generated log file. Also, the host stderr is available in messages.

なんだろな、と思ったら、まんまエラーメッセージをタイトルにしてくださってる方の記事を発見。

Failed to load python3 host. You can try to see what happened by starting nvim with $NVIM_PYTHON_LOG_FILE set and opening the generated log file. Also, the host stderr is available in messages. - 地方エンジニアの学習日記

ということでpython3 -m pip install neovimする。

 arimasou16  aerobookplus  ~  %  python3 -m pip install neovim
Defaulting to user installation because normal site-packages is not writeable
Collecting neovim
  Using cached neovim-0.3.1.tar.gz (804 bytes)
Collecting pynvim>=0.3.1
  Using cached pynvim-0.4.3.tar.gz (56 kB)
Requirement already satisfied: msgpack>=0.5.0 in /usr/lib/python3.10/site-packages (from pynvim>=0.3.1->neovim) (1.0.2)
Collecting greenlet
  Downloading greenlet-1.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (155 kB)
     |████████████████████████████████| 155 kB 8.3 MB/s            
Using legacy 'setup.py install' for neovim, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pynvim, since package 'wheel' is not installed.
Installing collected packages: greenlet, pynvim, neovim
    Running setup.py install for pynvim ... done
    Running setup.py install for neovim ... done
Successfully installed greenlet-1.1.2 neovim-0.3.1 pynvim-0.4.3

直った。