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

FileNotFoundError when download bundle #8075

Closed
KumoLiu opened this issue Sep 10, 2024 · 0 comments · Fixed by #8076
Closed

FileNotFoundError when download bundle #8075

KumoLiu opened this issue Sep 10, 2024 · 0 comments · Fixed by #8076

Comments

@KumoLiu
Copy link
Contributor

KumoLiu commented Sep 10, 2024

python -m monai.bundle download --source ngc_private brats_mri_segmentation
2024-09-10 06:10:46,087 - INFO - --- input summary of monai.bundle.scripts.download ---
2024-09-10 06:10:46,088 - INFO - > name: 'brats_mri_segmentation'
2024-09-10 06:10:46,088 - INFO - > source: 'ngc_private'
2024-09-10 06:10:46,088 - INFO - > remove_prefix: 'monai_'
2024-09-10 06:10:46,088 - INFO - > progress: True
2024-09-10 06:10:46,088 - INFO - ---


Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.10/dist-packages/monai/bundle/__main__.py", line 31, in <module>
    fire.Fire()
  File "/usr/local/lib/python3.10/dist-packages/fire/core.py", line 143, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/usr/local/lib/python3.10/dist-packages/fire/core.py", line 477, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/usr/local/lib/python3.10/dist-packages/fire/core.py", line 693, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/monai/bundle/scripts.py", line 581, in download
    _download_from_ngc_private(
  File "/usr/local/lib/python3.10/dist-packages/monai/bundle/scripts.py", line 259, in _download_from_ngc_private
    with open(zip_path, "wb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/torch/hub/bundle/monai_brats_mri_segmentation_v0.5.1.zip'
KumoLiu added a commit to KumoLiu/MONAI that referenced this issue Sep 10, 2024
Signed-off-by: YunLiu <[email protected]>
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

Successfully merging a pull request may close this issue.

1 participant