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

unstable docker tag is lagging behind Nibabies development version #372

Closed
scott-huberty opened this issue Aug 2, 2024 · 2 comments
Closed

Comments

@scott-huberty
Copy link
Contributor

The documentation says:

To pull an image, the specific version tag must be specified in order to pull the images ... unstable points to the most recent developmental change

But running docker pull nipreps/nibabies:unstable

Pulls an image that was last updated 2 months ago. As a result, using the development version of Nibabies with the unstable Docker tag will immediately fail with an import error.

Sample command
docker run -it \
  -v /path/to/bids:/data:ro \
  -v /path/to/derivatives/Nibabies:/out \
  -v /path/to/derivatives/work/nibabies_work:/scratch \
  -v /path/to/freesurfer_license/license.txt:/opt/freesurfer/license.txt:ro \
  -v /path/to/devel/repos/nibabies/nibabies:/opt/conda/envs/nibabies/lib/python3.10/site-packages/nibabies:ro \
  nipreps/nibabies:unstable \
  /data /out participant \
  --age-months 6 \
  --participant-label 999 \
  -w /scratch \
  --surface-recon-method freesurfer \
Stack Trace
Traceback (most recent call last):
  File "/opt/conda/envs/nibabies/bin/nibabies", line 8, in <module>
    sys.exit(main())
  File "/opt/conda/envs/nibabies/lib/python3.10/site-packages/nibabies/cli/run.py", line 62, in main
    retval = build_workflow(config_file)
  File "/opt/conda/envs/nibabies/lib/python3.10/site-packages/nibabies/cli/workflow.py", line 19, in build_workflow
    from ..reports.core import generate_reports
  File "/opt/conda/envs/nibabies/lib/python3.10/site-packages/nibabies/reports/core.py", line 5, in <module>
    from nibabies.data import load as load_data
  File "/opt/conda/envs/nibabies/lib/python3.10/site-packages/nibabies/data/__init__.py", line 1, in <module>
    from acres import Loader

A workaround is to specify the version number (24.0.0rc0) in the docker run command, raising the question: Does the documentation need to be corrected, or does the unstable nibabies docker image need to be updated?

@mgxd
Copy link
Collaborator

mgxd commented Aug 26, 2024

This is fixed after #379

@mgxd mgxd closed this as completed Aug 26, 2024
@scott-huberty
Copy link
Contributor Author

Thanks @mgxd 🙏

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