Using Pyenv instead of Conda
Nicola-Bini opened this issue · comments
Hi @AckslD,
Does this plugin requires conda? or is it also able to read local virtual environment created with (python -m venv .venv)?
I tried running it but it's returning the following error. My understanding is that the plugin reads the CONDA_EXE env variable to find environments. Is there a way to use pyenv instead?
E5108: Error executing lua ...lunarvim/site/pack/lazy/opt/swenv.nvim/lua/swenv/api.lua:12: attempt to index local 'conda_exe_path' (a userdata value)
stack traceback:
...lunarvim/site/pack/lazy/opt/swenv.nvim/lua/swenv/api.lua:12: in function 'get_conda_base'
...lunarvim/site/pack/lazy/opt/swenv.nvim/lua/swenv/api.lua:55: in function 'get_venvs'
...lunarvim/site/pack/lazy/opt/swenv.nvim/lua/swenv/api.lua:81: in function 'pick_venv'
[string ":lua"]:1: in main chunk
I loved the plugin!! Thank you so much for this!
Hi @Nicola-Bini, could you try to update the plugin, looks like this is using an old version
Thank you both!
you were right, I first installed the fork from Lunarvim, then replaced it with this repo. For some reason packer in Lunarvim is not set to update plugins on startup.