run-ai / genv

GPU environment and cluster management with LLM support
https://www.genv.dev
GNU Affero General Public License v3.0
445 stars 19 forks source link

Incompatible with Anaconda #49

Closed eyildiz-ugoe closed 1 year ago

eyildiz-ugoe commented 1 year ago

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.

pablovela5620 commented 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'
eyildiz-ugoe commented 1 year ago

my solution was to install miniconda, and then passing this command:

conda install -c conda-forge genv=0.11.0

now it works

razrotenberg commented 1 year ago

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:

  1. conda install -c conda-forge genv
  2. pip install genv and then set your shell manually

I 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

razrotenberg commented 1 year ago

@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)

pablovela5620 commented 1 year ago

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

razrotenberg commented 1 year ago

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