Skip to content

downloading error -- ./modules/resample_benchmark.ipynb #683

@wyli

Description

@wyli

Describe the bug

[2022-05-04T01:43:45.621Z] Running ./modules/resample_benchmark.ipynb
[2022-05-04T01:43:45.621Z] Checking PEP8 compliance...
[2022-05-04T01:43:46.184Z] Running notebook...
[2022-05-04T01:43:46.748Z] /opt/conda/lib/python3.8/site-packages/papermill/iorw.py:58: FutureWarning: pyarrow.HadoopFileSystem is deprecated as of 2.0.0, please use pyarrow.fs.HadoopFileSystem instead.
[2022-05-04T01:43:46.748Z]   from pyarrow import HadoopFileSystem
[2022-05-04T01:44:09.250Z] 
Executing:   0%|          | 0/27 [00:00<?, ?cell/s]
Executing:   4%|▎         | 1/27 [00:01<00:32,  1.26s/cell]
Executing:  11%|█         | 3/27 [00:17<02:31,  6.31s/cell]
Executing:  19%|█▊        | 5/27 [00:21<01:30,  4.10s/cell]
Executing:  19%|█▊        | 5/27 [00:22<01:37,  4.45s/cell]
[2022-05-04T01:44:09.250Z] Traceback (most recent call last):
[2022-05-04T01:44:09.250Z]   File "/opt/conda/bin/papermill", line 8, in <module>
[2022-05-04T01:44:09.250Z]     sys.exit(papermill())
[2022-05-04T01:44:09.250Z]   File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
[2022-05-04T01:44:09.250Z]     return self.main(*args, **kwargs)
[2022-05-04T01:44:09.250Z]   File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 1053, in main
[2022-05-04T01:44:09.250Z]     rv = self.invoke(ctx)
[2022-05-04T01:44:09.250Z]   File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
[2022-05-04T01:44:09.250Z]     return ctx.invoke(self.callback, **ctx.params)
[2022-05-04T01:44:09.250Z]   File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 754, in invoke
[2022-05-04T01:44:09.250Z]     return __callback(*args, **kwargs)
[2022-05-04T01:44:09.250Z]   File "/opt/conda/lib/python3.8/site-packages/click/decorators.py", line 26, in new_func
[2022-05-04T01:44:09.250Z]     return f(get_current_context(), *args, **kwargs)
[2022-05-04T01:44:09.250Z]   File "/opt/conda/lib/python3.8/site-packages/papermill/cli.py", line 250, in papermill
[2022-05-04T01:44:09.250Z]     execute_notebook(
[2022-05-04T01:44:09.250Z]   File "/opt/conda/lib/python3.8/site-packages/papermill/execute.py", line 122, in execute_notebook
[2022-05-04T01:44:09.250Z]     raise_for_execution_errors(nb, output_path)
[2022-05-04T01:44:09.250Z]   File "/opt/conda/lib/python3.8/site-packages/papermill/execute.py", line 234, in raise_for_execution_errors
[2022-05-04T01:44:09.250Z]     raise error
[2022-05-04T01:44:09.250Z] papermill.exceptions.PapermillExecutionError: 
[2022-05-04T01:44:09.250Z] ---------------------------------------------------------------------------
[2022-05-04T01:44:09.250Z] Exception encountered at "In [2]":
[2022-05-04T01:44:09.250Z] ---------------------------------------------------------------------------
[2022-05-04T01:44:09.250Z] RuntimeError                              Traceback (most recent call last)
[2022-05-04T01:44:09.250Z] Input In [2], in <cell line: 13>()
[2022-05-04T01:44:09.250Z]      12 # download and rename
[2022-05-04T01:44:09.250Z]      13 for k, v in url_dict.items():
[2022-05-04T01:44:09.250Z] ---> 14     download_url(v, f"{root_dir}/{k}")
[2022-05-04T01:44:09.250Z] 
[2022-05-04T01:44:09.250Z] File /opt/conda/lib/python3.8/site-packages/monai/apps/utils.py:196, in download_url(url, filepath, hash_val, hash_type, progress)
[2022-05-04T01:44:09.250Z]     194     _download_with_progress(url, tmp_name, progress=progress)
[2022-05-04T01:44:09.250Z]     195 if not tmp_name.exists():
[2022-05-04T01:44:09.250Z] --> 196     raise RuntimeError(
[2022-05-04T01:44:09.250Z]     197         f"Download of file from {url} to {filepath} failed due to network issue or denied permission."
[2022-05-04T01:44:09.250Z]     198     )
[2022-05-04T01:44:09.250Z]     199 file_dir = filepath.parent
[2022-05-04T01:44:09.250Z]     200 if file_dir:
[2022-05-04T01:44:09.250Z] 
[2022-05-04T01:44:09.250Z] RuntimeError: Download of file from https://drive.google.com/uc?id=17tsDLvG_GZm7a4fCVMCv-KyDx0hqq1ji to /tmp/tmp6tdsdbcq/mri.nii failed due to network issue or denied permission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions