ReproNim / containers

Containers "distribution" for reproducible neuroimaging
Apache License 2.0
26 stars 16 forks source link

"Typical workflow" observations on Windows #50

Open adswa opened 4 years ago

adswa commented 4 years ago

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
[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>:

datalad@latitude-e7440 MINGW64 /tmp/repro-Yo4XEyy/ds000003-qc (adjusted/master(unlocked))
$ datalad run -m "Downgrade/Freeze mriqc container version" bash containers/scripts/freeze_versions bids-mriqc=0.15.1
[INFO] == Command start (output follows) =====
I: bids-mriqc -> 0.15.1
[INFO] == Command exit (modification check follows) =====
[INFO] Total: starting
[INFO]
add(ok): .datalad\config (file)
[INFO] Total: processed result for C:\Users\datalad\AppData\Local\Temp\repro-Yo4XEyy\ds000003-qc\containers
save(ok): containers (dataset)
add(ok): containers (file)
[INFO] Total: processed result for C:\Users\datalad\AppData\Local\Temp\repro-Yo4XEyy\ds000003-qc
save(ok): . (dataset)
[INFO] Total: done
action summary:
  add (ok: 2)
  save (ok: 2)

Anaconda Prompt:

(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.