Closed lu5her-s closed 8 months ago
Hi, did you do :UpdateRemotePlugin to register that function?
ok, I see the problem. this is problem from python provider in nvim. will set g.python3_host_prog , and set g.loaded_python3_provider = nill (not 0 or 1) to solve this
when i use :UpdateRemotePlugin
,i get this error.
it seems like doesn't run 'pip install -r requirements.txt'
Encountered ModuleNotFoundError loading plugin at /home/xx/.local/share/nvim/lazy/gemini.nvim/rplugin/python3/gemini: No module named 'google'
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/pynvim/plugin/host.py", line 187, in _load
module = _handle_import(directory, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynvim/plugin/host.py", line 40, in _handle_import
return importlib.import_module(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
ModuleNotFoundError: No module named 'google'
remote/host: python3 host registered plugins []
remote/host: generated rplugin manifest: /home/xx/.local/share/nvim/rplugin.vim
I install python through this .
sudo pacman -S python python-neovim python-pip
os: Arch python:3.11.8 pip: 24.0 python-neovim : 0.5.0
in my plugin configuration I did this:
{
'kiddos/gemini.nvim',
build = { 'pip install -r requirements.txt', ':UpdateRemotePlugins' },
config = function()
require('gemini').setup()
end
}
to run pip install -r requirements.txt
when use <Ctrl+o> to call plugin
pynvim = 0.5.0 python = 3.11 os = manjaro_x64