Unknown function: _gemini_api_stream_async
i pressed ctrl+o, selected code explain, and got following error:
Error executing vim.schedule lua callback: ....local/share/nvim/lazy/gemini.nvim/lua/gemini/prompt.lua:69: Vim:E117: Unknown function: _gemini_api_stream_async
stack traceback:
[C]: in function 'nvim_call_function'
....local/share/nvim/lazy/gemini.nvim/lua/gemini/prompt.lua:69: in function ''
vim/_editor.lua: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue
Could you try to do :UpdateRemotePlugins again?
What version of pynvim are you using?
I am also having the same issue and have already done the UpdateRemotePlugins but the issue still remains
google-generativeai 0.5.3
pynvim 0.5.0
What version of pynvim are you using?
Latest version installed by the script
Can you provide a minimum nvim config to replicate the issue?
That function is implemented in python, but somehow it's not registered in your setting. UpdateRemotePlugins should have registered it, but there might be something else interfering it.
I have the same problem, I am just a user of lazynvim so I don't know how it works and all configuration files.
But I noticed that nvim-data\rplugin.vim has no python3 plugin, in fact the file is almost empty (only comments). Don't know if this is related.
Thanks
I had similar problems and ithe thing that worked for me was the following. You need to run :UpdateRemotePlugins. But that call failed for me. And the reason it failed was because python3 provider was disabled in my Neovim config. I had this line in my config:
vim.g.loaded_python3_provider = 0
Also, I did ensured pynvim Python package is installed, not sure if it is needed, but I do have it.
So, to summarize:
- Ensure pynvim is installed by runnning
pip3 install pynvim - Ensure that Python3 provider is not disabled in Neovim config (check that
:lua =vim.g.loaded_python3_provideroutputs something other than 0. If so, check your configs and find where it is set to 0 and remove that. - Run
:UpdateRemotePlugins. This will install "gemini" remote provider.
I had similar problems and ithe thing that worked for me was the following. You need to run
:UpdateRemotePlugins. But that call failed for me. And the reason it failed was because python3 provider was disabled in my Neovim config. I had this line in my config:vim.g.loaded_python3_provider = 0Also, I did ensured pynvim Python package is installed, not sure if it is needed, but I do have it.
So, to summarize:
- Ensure pynvim is installed by runnning
pip3 install pynvim- Ensure that Python3 provider is not disabled in Neovim config (check that
:lua =vim.g.loaded_python3_provideroutputs something other than 0. If so, check your configs and find where it is set to 0 and remove that.- Run
:UpdateRemotePlugins. This will install "gemini" remote provider.
Thanks for suggestions, I followed all steps but unfortunately this did not work. This is the result of UpdateRemotePlugins, is it normal?:
remote/host: python3 host registered plugins []
remote/host: generated rplugin manifest: C:\Users\pnnp\AppData\Local\nvim-data/rplugin.vim
The rplugin.vim is empty (not considering comments) Thanks
remote/host: python3 host registered plugins [] remote/host: generated rplugin manifest: C:\Users\pnnp\AppData\Local\nvim-data/rplugin.vimThe rplugin.vim is empty (not considering comments) Thanks
Same situation here
I am working on rewriting the http request using FFI. I notice that python plugin run kinda slow in WSL for some reason.
I remove the python binding part and use curl to retrieve the result. closing this.