Describe the bug
Error generated on Windows 11 with Cuda 12.6 when doing
pip install monai[all]
The issue is that cucim doesn't provide packages for Windows.
Should do either
- exclude cucim from [all] and have a [linux-all] option or
- keep cucim in [all] but also provide a [windows-all] that doesn't include cucim
To Reproduce
From a clean venv on windows
- Install pytorch with cuda support:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
- Install monai[all]
pip install monai[all]
Expected behavior
Expect it to install without errors
Screenshots
[...]
Collecting cucim-cu12
Downloading cucim_cu12-24.10.0.tar.gz (3.2 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [57 lines of output]
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp310-cp310-manylinux_2_28_aarch64.whl against tag cp310-cp310-manylinux_2_28_aarch64
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp310-cp310-manylinux_2_28_x86_64.whl against tag cp310-cp310-manylinux_2_28_x86_64
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp311-cp311-manylinux_2_28_aarch64.whl against tag cp311-cp311-manylinux_2_28_aarch64
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp311-cp311-manylinux_2_28_x86_64.whl against tag cp311-cp311-manylinux_2_28_x86_64
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp312-cp312-manylinux_2_28_aarch64.whl against tag cp312-cp312-manylinux_2_28_aarch64
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp312-cp312-manylinux_2_28_x86_64.whl against tag cp312-cp312-manylinux_2_28_x86_64
File "C:\Users\saylward\AppData\Local\Temp\pip-build-env-gqxl9bks\overlay\Lib\site-packages\nvidia_stub\wheel.py", line 177, in download_wheel
return download_manual(wheel_directory, distribution, version)
File "C:\Users\saylward\AppData\Local\Temp\pip-build-env-gqxl9bks\overlay\Lib\site-packages\nvidia_stub\wheel.py", line 144, in download_manual
raise RuntimeError(f"Didn't find wheel for {distribution} {version}")
Traceback (most recent call last):
File "C:\Users\saylward\AppData\Local\Temp\pip-build-env-gqxl9bks\overlay\Lib\site-packages\nvidia_stub\wheel.py", line 177, in download_wheel
return download_manual(wheel_directory, distribution, version)
File "C:\Users\saylward\AppData\Local\Temp\pip-build-env-gqxl9bks\overlay\Lib\site-packages\nvidia_stub\wheel.py", line 144, in download_manual
raise RuntimeError(f"Didn't find wheel for {distribution} {version}")
RuntimeError: Didn't find wheel for cucim-cu12 24.10.0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\src\MONAI\venv_monai_pip\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\src\MONAI\venv_monai_pip\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\src\MONAI\venv_monai_pip\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\saylward\AppData\Local\Temp\pip-build-env-gqxl9bks\overlay\Lib\site-packages\nvidia_stub\buildapi.py", line 29, in build_wheel
return download_wheel(pathlib.Path(wheel_directory), config_settings)
File "C:\Users\saylward\AppData\Local\Temp\pip-build-env-gqxl9bks\overlay\Lib\site-packages\nvidia_stub\wheel.py", line 179, in download_wheel
report_install_failure(distribution, version, exception_context)
File "C:\Users\saylward\AppData\Local\Temp\pip-build-env-gqxl9bks\overlay\Lib\site-packages\nvidia_stub\error.py", line 63, in report_install_failure
raise InstallFailedError(
nvidia_stub.error.InstallFailedError:
*******************************************************************************
The installation of cucim-cu12 for version 24.10.0 failed.
This is a special placeholder package which downloads a real wheel package
from https://pypi.nvidia.com. If https://pypi.nvidia.com is not reachable, we
cannot download the real wheel file to install.
You might try installing this package via
```
$ pip install --extra-index-url https://pypi.nvidia.com cucim-cu12
```
Here is some debug information about your platform to include in any bug
report:
Python Version: CPython 3.10.11
Operating System: Windows 10
CPU Architecture: AMD64
Driver Version: 560.76
CUDA Version: 12.6
*******************************************************************************
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Environment
================================
Printing MONAI config...
MONAI version: 1.4.0+30.ge604d184
Numpy version: 1.26.3
Pytorch version: 2.5.1+cu124
MONAI flags: HAS_EXT = False, USE_COMPILED = False, USE_META_DICT = False
MONAI rev id: e604d18
MONAI file: C:\src\MONAI\MONAI\monai_init_.py
Optional dependencies:
Pytorch Ignite version: NOT INSTALLED or UNKNOWN VERSION.
ITK version: NOT INSTALLED or UNKNOWN VERSION.
Nibabel version: NOT INSTALLED or UNKNOWN VERSION.
scikit-image version: NOT INSTALLED or UNKNOWN VERSION.
scipy version: NOT INSTALLED or UNKNOWN VERSION.
Pillow version: 10.2.0
Tensorboard version: NOT INSTALLED or UNKNOWN VERSION.
gdown version: NOT INSTALLED or UNKNOWN VERSION.
TorchVision version: 0.20.1+cu124
tqdm version: NOT INSTALLED or UNKNOWN VERSION.
lmdb version: NOT INSTALLED or UNKNOWN VERSION.
psutil version: NOT INSTALLED or UNKNOWN VERSION.
pandas version: NOT INSTALLED or UNKNOWN VERSION.
einops version: NOT INSTALLED or UNKNOWN VERSION.
transformers version: NOT INSTALLED or UNKNOWN VERSION.
mlflow version: NOT INSTALLED or UNKNOWN VERSION.
pynrrd version: NOT INSTALLED or UNKNOWN VERSION.
clearml version: NOT INSTALLED or UNKNOWN VERSION.
For details about installing the optional dependencies, please visit:
https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies
================================
Printing system config...
psutil required for print_system_info
================================
Printing GPU config...
Num GPUs: 1
Has CUDA: True
CUDA version: 12.4
cuDNN enabled: True
NVIDIA_TF32_OVERRIDE: None
TORCH_ALLOW_TF32_CUBLAS_OVERRIDE: None
cuDNN version: 90100
Current device: 0
Library compiled for CUDA architectures: ['sm_50', 'sm_60', 'sm_61', 'sm_70', 'sm_75', 'sm_80', 'sm_86', 'sm_90']
GPU 0 Name: NVIDIA RTX 5000 Ada Generation Laptop GPU
GPU 0 Is integrated: False
GPU 0 Is multi GPU board: False
GPU 0 Multi processor count: 76
GPU 0 Total memory (GB): 16.0
GPU 0 CUDA capability (maj.min): 8.9
Additional context
Add any other context about the problem here.
Describe the bug
Error generated on Windows 11 with Cuda 12.6 when doing
The issue is that cucim doesn't provide packages for Windows.
Should do either
To Reproduce
From a clean venv on windows
Expected behavior
Expect it to install without errors
Screenshots
[...]
Collecting cucim-cu12
Downloading cucim_cu12-24.10.0.tar.gz (3.2 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [57 lines of output]
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp310-cp310-manylinux_2_28_aarch64.whl against tag cp310-cp310-manylinux_2_28_aarch64
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp310-cp310-manylinux_2_28_x86_64.whl against tag cp310-cp310-manylinux_2_28_x86_64
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp311-cp311-manylinux_2_28_aarch64.whl against tag cp311-cp311-manylinux_2_28_aarch64
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp311-cp311-manylinux_2_28_x86_64.whl against tag cp311-cp311-manylinux_2_28_x86_64
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp312-cp312-manylinux_2_28_aarch64.whl against tag cp312-cp312-manylinux_2_28_aarch64
INFO:nvidia-stub:Testing wheel cucim_cu12-24.10.0-cp312-cp312-manylinux_2_28_x86_64.whl against tag cp312-cp312-manylinux_2_28_x86_64
File "C:\Users\saylward\AppData\Local\Temp\pip-build-env-gqxl9bks\overlay\Lib\site-packages\nvidia_stub\wheel.py", line 177, in download_wheel
return download_manual(wheel_directory, distribution, version)
File "C:\Users\saylward\AppData\Local\Temp\pip-build-env-gqxl9bks\overlay\Lib\site-packages\nvidia_stub\wheel.py", line 144, in download_manual
raise RuntimeError(f"Didn't find wheel for {distribution} {version}")
Traceback (most recent call last):
File "C:\Users\saylward\AppData\Local\Temp\pip-build-env-gqxl9bks\overlay\Lib\site-packages\nvidia_stub\wheel.py", line 177, in download_wheel
return download_manual(wheel_directory, distribution, version)
File "C:\Users\saylward\AppData\Local\Temp\pip-build-env-gqxl9bks\overlay\Lib\site-packages\nvidia_stub\wheel.py", line 144, in download_manual
raise RuntimeError(f"Didn't find wheel for {distribution} {version}")
RuntimeError: Didn't find wheel for cucim-cu12 24.10.0
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Environment
================================
Printing MONAI config...
MONAI version: 1.4.0+30.ge604d184
Numpy version: 1.26.3
Pytorch version: 2.5.1+cu124
MONAI flags: HAS_EXT = False, USE_COMPILED = False, USE_META_DICT = False
MONAI rev id: e604d18
MONAI file: C:\src\MONAI\MONAI\monai_init_.py
Optional dependencies:
Pytorch Ignite version: NOT INSTALLED or UNKNOWN VERSION.
ITK version: NOT INSTALLED or UNKNOWN VERSION.
Nibabel version: NOT INSTALLED or UNKNOWN VERSION.
scikit-image version: NOT INSTALLED or UNKNOWN VERSION.
scipy version: NOT INSTALLED or UNKNOWN VERSION.
Pillow version: 10.2.0
Tensorboard version: NOT INSTALLED or UNKNOWN VERSION.
gdown version: NOT INSTALLED or UNKNOWN VERSION.
TorchVision version: 0.20.1+cu124
tqdm version: NOT INSTALLED or UNKNOWN VERSION.
lmdb version: NOT INSTALLED or UNKNOWN VERSION.
psutil version: NOT INSTALLED or UNKNOWN VERSION.
pandas version: NOT INSTALLED or UNKNOWN VERSION.
einops version: NOT INSTALLED or UNKNOWN VERSION.
transformers version: NOT INSTALLED or UNKNOWN VERSION.
mlflow version: NOT INSTALLED or UNKNOWN VERSION.
pynrrd version: NOT INSTALLED or UNKNOWN VERSION.
clearml version: NOT INSTALLED or UNKNOWN VERSION.
For details about installing the optional dependencies, please visit:
https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies
================================
Printing system config...
psutilrequired forprint_system_info================================
Printing GPU config...
Num GPUs: 1
Has CUDA: True
CUDA version: 12.4
cuDNN enabled: True
NVIDIA_TF32_OVERRIDE: None
TORCH_ALLOW_TF32_CUBLAS_OVERRIDE: None
cuDNN version: 90100
Current device: 0
Library compiled for CUDA architectures: ['sm_50', 'sm_60', 'sm_61', 'sm_70', 'sm_75', 'sm_80', 'sm_86', 'sm_90']
GPU 0 Name: NVIDIA RTX 5000 Ada Generation Laptop GPU
GPU 0 Is integrated: False
GPU 0 Is multi GPU board: False
GPU 0 Multi processor count: 76
GPU 0 Total memory (GB): 16.0
GPU 0 CUDA capability (maj.min): 8.9
Additional context
Add any other context about the problem here.