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
As I have a Win 10 Pro build 2004 box for testing, @yarikoptic asked me to test the "Typical Workflow" from the README on Windows.
I'm testing under two different terminals/shells: A Git Bash and an Anaconda Prompt (both installed using the most recent instructions from the handbook).
Unfortunately, testing required more time than I anticipated, so I'm posting the issue "as is", although I haven't finished the workflow. I will return to this at a later point.
Git Bash:
Pro: Copy-pasting the script directly into the terminal works because Git Bash supports multi-line commands
datalad run -m 'Downgrade/Freeze mriqc container version' containers/scripts/freeze_versions bids-mriqc=0.15.1 fails when copy-pasting and when executing in a script with:
> datalad run -m 'Downgrade/Freeze mriqc container version' containers/scripts/freeze_versions bids-mriqc=0.15.1
[INFO] == Command start (output follows) =====
'"containers/scripts/freeze_versions"' is not recognized as an internal or external command,
operable program or batch file.
[INFO] == Command exit (modification check follows) =====
[INFO] The command had a non-zero exit code. If this is expected, you can save the changes with 'datalad save -d . -r -F .git\COMMIT_EDITMSG'
CommandError: '"containers/scripts/freeze_versions" "bids-mriqc=0.15.1"' failed with exitcode 1 under C:/Users/datalad/AppData/Local/Temp/repro-x8Gb5J4/ds000003-qc
A fix for this would be to invoke datalad run with bash <script>:
Fail: You can't copy paste the command into the terminal. I believe Windows needs ^ at each line ending in multi-line commands (see the last Windows-Workaround in this section
I can't currently say definite things about what happens when I execute the script via "bash " in Anaconda prompt, because I'm seeing a very weird interaction between Windows and WSL2, where a bash session from Windows ends up in WSL2:
(base) C:\Users\datalad\repos>echo "This is anaconda prompt on native Windows 10!"
"This is anaconda prompt on native Windows 10!"
(base) C:\Users\datalad\repos>echo %username%
datalad
(base) C:\Users\datalad\repos>bash
adina@latitude-e7440:/mnt/c/Users/datalad/repos$ groups
adina adm cdrom sudo dip plugdev
adina@latitude-e7440:/mnt/c/Users/datalad/repos$ echo "WTAF"
WTAF
adina@latitude-e7440:/mnt/c/Users/datalad/repos$
I need to redo this after wiping the machine again.
The text was updated successfully, but these errors were encountered:
As I have a Win 10 Pro build 2004 box for testing, @yarikoptic asked me to test the "Typical Workflow" from the README on Windows.
I'm testing under two different terminals/shells: A Git Bash and an Anaconda Prompt (both installed using the most recent instructions from the handbook).
Unfortunately, testing required more time than I anticipated, so I'm posting the issue "as is", although I haven't finished the workflow. I will return to this at a later point.
Git Bash:
datalad run -m 'Downgrade/Freeze mriqc container version' containers/scripts/freeze_versions bids-mriqc=0.15.1
fails when copy-pasting and when executing in a script with:A fix for this would be to invoke
datalad run
withbash <script>
:Anaconda Prompt:
^
at each line ending in multi-line commands (see the last Windows-Workaround in this sectionI need to redo this after wiping the machine again.
The text was updated successfully, but these errors were encountered: