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
actually calls /bin/sh. For some OS, like Ubuntu, sh links to dash which does not support the scripting features required by conda activations. This results in runtime errors like
A solution would be to change the shell with which the commands are called. This is possible thanks to the subprocess package. A good default would be bash as almost all Unix systems use it.
One could also add a way to change this default. Additionally, wouldn't it be better to launch the tasks as background jobs for the standalone backend (simply add & at the end of the command) ?
The text was updated successfully, but these errors were encountered:
francois-rozet
changed the title
[BUG] conda environment activation crash standalone execution
[BUG] conda activation crashes standalone execution
Dec 30, 2021
Issue description
In the
standalone
backend on Unix systems, theos.system(command)
used hereawflow/awflow/backends/standalone/executor.py
Lines 53 to 60 in 1fcf255
actually calls
/bin/sh
. For some OS, like Ubuntu,sh
links todash
which does not support the scripting features required byconda
activations. This results in runtime errors likesh: 5: /home/username/miniconda3/envs/envname/etc/conda/activate.d/activate-binutils_linux-64.sh: Syntax error: "(" unexpected
Proposed solution
A solution would be to change the shell with which the commands are called. This is possible thanks to the
subprocess
package. A good default would bebash
as almost all Unix systems use it.One could also add a way to change this default. Additionally, wouldn't it be better to launch the tasks as background jobs for the standalone backend (simply add
&
at the end of the command) ?The text was updated successfully, but these errors were encountered: