Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

RuntimeError #7256

Closed
Zhongrocky opened this issue Nov 24, 2023 · 2 comments
Closed

RuntimeError #7256

Zhongrocky opened this issue Nov 24, 2023 · 2 comments

Comments

@Zhongrocky
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Linux terminal
  2. Install monai==1.1.0,ptorch==2.0.1,numpy==1.23.0
  3. Run my_train.py

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Traceback (most recent call last):
File "/CCTA2D/lib/python3.10/site-packages/monai/transforms/transform.py", line 102, in apply_transform
return _apply_transform(transform, data, unpack_items)
File "/CCTA2D/lib/python3.10/site-packages/monai/transforms/transform.py", line 66, in _apply_transform
return transform(parameters)
File "/CCTA2D/lib/python3.10/site-packages/monai/transforms/io/dictionary.py", line 154, in call
data = self._loader(d[key], reader)
File "/CCTA2D/lib/python3.10/site-packages/monai/transforms/io/array.py", line 266, in call
raise RuntimeError(
RuntimeError: LoadImage cannot find a suitable reader for file: /Final_Data_real/train/FU WEI SU/raw_data.nii.gz.
Please install the reader libraries, see also the installation instructions:
https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies.
The current registered: [<monai.data.image_reader.NumpyReader object at 0x7f99d17edab0>, <monai.data.image_reader.PILReader object at 0x7f99d17edea0>].

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/CCTA2D/lib/python3.10/site-packages/monai/data/dataset.py", line 870, in _fill_cache
return list(tqdm(p.imap(self._load_cache_item, indices), total=len(indices), desc="Loading dataset"))
File "/CCTA2D/lib/python3.10/site-packages/tqdm/std.py", line 1182, in iter
for obj in iterable:
File "/CCTA2D/lib/python3.10/multiprocessing/pool.py", line 870, in next
raise value
File "/CCTA2D/lib/python3.10/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/CCTA2D/lib/python3.10/site-packages/monai/data/dataset.py", line 884, in _load_cache_item
item = apply_transform(_xform, item)
File "/CCTA2D/lib/python3.10/site-packages/monai/transforms/transform.py", line 129, in apply_transform
raise RuntimeError(f"applying transform {transform}") from e
RuntimeError: applying transform <monai.transforms.io.dictionary.LoadImaged object at 0x7f9ae34e73d0>

Process finished with exit code 1

Environment

Ensuring you use the relevant python executable, please paste the output of: python==3.10.0

python -c "import monai; monai.config.print_debug_info()"

Additional context
Add any other context about the problem here.

@KumoLiu
Copy link
Contributor

KumoLiu commented Nov 24, 2023

Hi @Zhongrocky, could you please try pip install nibabel?
Thanks!

@Zhongrocky
Copy link
Author

@KumoLiu Thank you for your help, it's ok.

@Project-MONAI Project-MONAI locked and limited conversation to collaborators Nov 24, 2023
@KumoLiu KumoLiu converted this issue into discussion #7257 Nov 24, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants