You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very exciting to see micromamba supported, thank you so much! I'm getting this error when I try to use reticulate=1.30 in an environment created from a YAML file with micromamba=1.49. It appears as if reticulate can't find the python binary, and is trying to use the 'conda' binary instead.
Error in normalizePath(conda, winslash = "/", mustWork = TRUE) :
path[1]="/home/username/.local/bin/micromamba env": No such file or directory
Calls: <Anonymous> ... python_munge_path -> get_python_conda_info -> normalizePath
Execution halted
Environment from CLI (Works)
Creating the environment plainly from the CLI works for me with no errors.
@ktmeaton Curious if you use commit ae96550 and use devtools::install('reticulate') to install from source and then run: use_condaenv("~/path_to_env", "~/pathto_micromamba/micromamba")
Does it work then? It's not an ideal fix since it uses globals, but it does help isolate the issue.
Thanks!
More info:
I'm running RStudio 4.4.2 hosted through my institution's Debian server. Micromamba 2.0.2-0 is loaded as a module, and I have a micromamba environment in my home directory.
I got the following error using the most recent release reticulate_1.41.0:
use_condaenv(condaenv = "/path_to_env/micromamba_env", conda = "/pathto_micromamba/micromamba")
Error: Unable to find conda binary. Is Anaconda installed?
For some reason, the conda argument isn't working. But setting the conda_binary option works (see solution).
Error
Very exciting to see
micromamba
supported, thank you so much! I'm getting this error when I try to usereticulate=1.30
in an environment created from a YAML file withmicromamba=1.49
. It appears as ifreticulate
can't find the python binary, and is trying to use the 'conda' binary instead.Environment from CLI (Works)
Creating the environment plainly from the CLI works for me with no errors.
micromamba create -y -n reticulate-from-cli r-base=4.2.1 r-reticulate=1.30 micromamba run -n reticulate-from-cli Rscript -e 'reticulate::use_condaenv("reticulate-from-cli")'
Environment from YAML (Error)
However creating from an
environment.yaml
file causes errors.These two environments are otherwise identical with no differences, and both have python3.11 installed.
conda
vsmamba
vsmicromamba
This seems to be restricted to
micromamba=1.49
asmamba=1.49
has no errors.mamba env create -f environment.yaml -n reticulate-from-yaml-mamba mamba run -n reticulate-from-yaml-mamba Rscript -e 'reticulate::use_condaenv("reticulate-from-yaml-mamba")'
I'm mystified about this error, any feedback would be greatly appreciated!
The text was updated successfully, but these errors were encountered: