Closed eyildiz-ugoe closed 1 year ago
facing a similar issue, using the vscode extension + conda doesn't seem to work. Whenever I try to install it via the extension. It pip installs and tries to initialize but gives the following error
eval "$(genv shell --init)"
No such command 'shell'
my solution was to install miniconda, and then passing this command:
conda install -c conda-forge genv=0.11.0
now it works
hi @eyildiz-ugoe, @pablovela5620 and thanks for reaching out!
in the last week I published Genv 1.0.0 which is installed very differently than Genv <= 0.12.0.
Genv is now installed in the standard pip install
way while Genv <= 0.12.0 was installed manually using git clone
and setting up $PATH
etc.
after publishing Genv 1.0.0 I published all non-core projects like the Visual Studio Code extension, JupyterLab extension, Conda installation, etc. you might installed it in the small time window in which the installation did not match each other.
what I suggest is that you clean your setup entirely and reinstall Genv. first, delete the existing Genv installation as described here. then, install Genv in the new and standard way, you can choose one of the two options:
conda install -c conda-forge genv
pip install genv
and then set your shell manuallyI also want to emphasize that the installation should not change any time soon, it was just this major leap from 0.X to 1.X and from git clone
-based installation to the standard pip install
way.
let me know if I can provide any help, I'd be happy to
@pablovela5620 also pls make sure to update the extension version to 0.3.0 that was released on Monday (https://marketplace.visualstudio.com/items?itemName=run-ai.vscode-genv)
Thanks @razrotenberg that helped me solve my problem. I think you're right in that I installed in that period of time. Seems to be working fine for me now
great to hear @pablovela5620 and thanks for the update! I'm closing this issue, pls feel free to open a new one if you encounter additional challenges
it does not seem like genv is actually compatible with conda. if you do genv activate then activate your conda environment, your genv reservation just dies. similarly, if you first activate your conda environment, then you install genv, you cannot even use genv activate anymore as it rejects the command. it's kinda messy.