I have created a python3 virtualenv specifically for the neovim and installed the packages required by nvim and its plugins there.
after setting g:python3_host_prog = '~/nvim/venv/bin/python' neovim starts as expected and :checkhealth is not giving me any error. but for some reason nvim-yarp keeps failing on startup flashing an error message on startup. it doesnt show error if i comment g:python3_host_prog line from my .nvimrc
33 ## Python 2 provider (optional)
34 - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
35 - ERROR: Python provider error:
36 - ADVICE:
37 ¦ - provider/pythonx: Could not load Python 2:
38 ¦ ¦ /usr/bin/python2 does not have the "neovim" module. :help ¦provider-python¦
39 ¦ ¦ /usr/bin/python2.7 does not have the "neovim" module. :help ¦provider-python¦
40 ¦ ¦ python2.6 not found in search path or not executable.
41 ¦ ¦ /usr/bin/python is Python 3.8 and cannot provide Python 2.
42 - INFO: Executable: Not found
43
44 ## Python 3 provider (optional)
45 - INFO: Using: g:python3_host_prog = "~/nvim/venv/bin/python"
46 - INFO: Executable: /home/precrisk/nvim/venv/bin/python
47 - INFO: Python version: 3.8.0
48 - INFO: pynvim version: 0.4.0
49 - OK: Latest pynvim is installed.
my project .nvimrc file with all nvim-yarp related config.
I have created a python3 virtualenv specifically for the neovim and installed the packages required by nvim and its plugins there. after setting
g:python3_host_prog = '~/nvim/venv/bin/python'
neovim starts as expected and:checkhealth
is not giving me any error. but for some reasonnvim-yarp
keeps failing on startup flashing an error message on startup. it doesnt show error if i commentg:python3_host_prog
line from my.nvimrc
OUTPUTS:
pip list of virtualenv:
:checkhealth
my project
.nvimrc
file with allnvim-yarp
related config.error message during nvim startup. this doesnt show if i comment out
g:python3_host_prog