`fedbiomed_environment` does not check conda envs exist
fedbiomed_environment
does not check a conda environ exists before activating it.
It should be considered as bug rather than lack of robustness, see consequences below.
It results in some error messages (and nasty consequences such as changing PATH variable, see after) for example a clean where not all environments exist:
source ./scripts/fedbiomed_environment clean
...
* Node cleaning
Could not find conda environment: fedbiomed-node
You can list all discoverable environments with `conda info --envs`.
Proposed solution:
- add a tag
required
boolean to functions likeactivate_network()
infedbiomed_environment
- fail with a clear error message if calling
fedbiomed_environment researcher
and conda env not existing - continue without some operations (and a warning message ?) for clean if conda env not existing
Related issues: #197 #199 (other issues with robustness of scripts for handling conda)