Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

micromamba run with missing env still attempts to execute the command #2084

Closed
jonashaag opened this issue Nov 2, 2022 · 0 comments · Fixed by #2257
Closed

micromamba run with missing env still attempts to execute the command #2084

jonashaag opened this issue Nov 2, 2022 · 0 comments · Fixed by #2257
Labels
type::bug Something isn't working

Comments

@jonashaag
Copy link
Contributor

$ micromamba run -n xxx python
warning  libmamba 'root_prefix' set with default value: /Users/j/micromamba
critical libmamba Cannot activate, prefix does not exist at: /Users/j/micromamba/envs/xxx
/var/folders/8v/x6lkdp6110d5w7z73g_jfm_00000gn/T/mambafjhLFdy8hm4: line 5: exec: python: not found

Env is missing so cannot be activated. Still the command is attempted to be executed as can be seen from the exec error message. This can lead to confusing behaviour if the command to be executed exists outside the environment (eg. system Python in this case). We should just stop after the critical error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant