idaholab / raven

RAVEN is a flexible and multi-purpose probabilistic risk analysis, validation and uncertainty quantification, parameter optimization, model reduction and data knowledge-discovering framework.
https://raven.inl.gov/
Apache License 2.0
216 stars 132 forks source link

[DEFECT] mamba might not be available in new conda environment #2269

Closed joshua-cogliati-inl closed 5 months ago

joshua-cogliati-inl commented 5 months ago

Thank you for the defect report

Defect Description

If mamba is in the outer environment, establish_conda will not install it in the newly created environment. This can be a problem because then mamba may not be found when trying to use mamba to install.

This can result in the following error message:

... conda-forge pre-command: conda create --name raven_libraries -y -c conda-forge
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done

...

... Activating environment ...
... conda-forge command: mamba install -y -c conda-forge h5py numpy=1.22 scipy=1.9 scikit-learn=1.0 pandas xarray=2023 matplotlib=3.5 statsmodels=0.13 cloudpickle=2.2 python=3 hdf5 swig pylint coverage lxml psutil pip importlib_metadata nomkl numexpr smt setuptools liblapack=3.9.0=20_linux64_openblas numpy-financial networkx pytest dill=0.3.5 pyomo=6.4 pyutilib glpk ipopt coincbc=2.10.5 cvxpy cvxopt quadprog qpsolvers
scripts/establish_conda_env.sh: line 196: mamba: command not found

Steps to Reproduce

Install with mamba in the base library, but not on the system.

Expected Behavior

This to work.

Screenshots and Input Files

No response

OS

Linux

OS Version

No response

Dependency Manager

CONDA

For Change Control Board: Issue Review

For Change Control Board: Issue Closure

wangcj05 commented 5 months ago

checklist is good.