Skip to content

Commit 4c514da

Browse files
Continue with warnings if conda not found. Fixes #1678 (#1686)
* Continue with warnings if conda not found. Fixes #1678 * Fix warning message if conda not found
1 parent 0b07e0d commit 4c514da

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

bin/deepforge

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,16 @@ program.command('start')
243243
.option('-N, --no-conda', 'do not start deepforge server in a conda environment.')
244244
.option('-m, --mongo', 'start MongoDB')
245245
.action(async args => {
246+
if(args.conda){
247+
try {
248+
Conda.check();
249+
} catch (e) {
250+
console.log('Warning: conda executable not found. Please ' +
251+
'install conda for automatic management of Python ' +
252+
'dependencies via conda environments.');
253+
args.conda = false;
254+
}
255+
}
246256
const serverCommand = getDeepForgeServerCommand(args.conda);
247257
const startAll = !args.server && !args.mongo;
248258
if (startAll) {

0 commit comments

Comments
 (0)