Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neurodocker minify fails #22

Open
drs-m opened this issue Oct 18, 2021 · 1 comment
Open

neurodocker minify fails #22

drs-m opened this issue Oct 18, 2021 · 1 comment

Comments

@drs-m
Copy link

drs-m commented Oct 18, 2021

Hey there,

I tried to reproduce the steps described here in order to adapt it to my needs by adding a command I need in docker (dtifit) so that I can use it in one image together with mrtrix3.

Unfortunately just cloning and reproducing the steps described in the README gave me the following error:

[NEURODOCKER 2021-10-18 16:36:33,328 INFO]: Configuration file written in /tmp/neurodocker-reprozip-trace/config.yml
Edit that file then run the packer -- use 'reprozip pack -h' for help
[NEURODOCKER 2021-10-18 16:36:33,328 INFO]: Uploading usage statistics is currently disabled
Please help us by providing anonymous usage statistics; you can enable this
by running:
    reprozip usage_report --enable
If you do not want to see this message again, you can run:
    reprozip usage_report --disable
Nothing will be uploaded before you opt in.
Traceback (most recent call last):
  File "/Users/nudelsalat/opt/anaconda3/bin/neurodocker-minify", line 8, in <module>
    sys.exit(main())
  File "/Users/nudelsalat/opt/anaconda3/lib/python3.8/site-packages/neurodocker/reprozip/gentle/trace.py", line 169, in main
    trace_and_prune(container=args.container, commands=args.commands, directories_to_prune=args.dirs_to_prune)
  File "/Users/nudelsalat/opt/anaconda3/lib/python3.8/site-packages/neurodocker/reprozip/gentle/trace.py", line 96, in trace_and_prune
    raise RuntimeError("Failed: {}".format(result))
RuntimeError: Failed: Traceback (most recent call last):
  File "/tmp/_prune.py", line 69, in <module>
    main(yaml_file=args.config_file, directories_to_prune=args.dirs_to_prune)
  File "/tmp/_prune.py", line 26, in main
    config = yaml.load(f)
TypeError: load() missing 1 required positional argument: 'Loader'

It looks like something related to the specific python version (2 vs 3) or a deprecated method in the yaml package. Have you had this issue before or know any way to solve it?

@kaczmarj
Copy link
Collaborator

kaczmarj commented Oct 19, 2021

hi @drs-m - that was a bug in neurodocker, which was fixed in ReproNim/neurodocker@a6631ba. can you retry with the current master branch of neurodocker?

the error is that yaml.load now requires a Loader argument. that was not the case in earlier versions of pyyaml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants