ANTsPy icon indicating copy to clipboard operation
ANTsPy copied to clipboard

Ants version crash kernel on python 3.9

Open EnriqueFV opened this issue 2 months ago • 7 comments

Describe the bug

I have create an enviroment with antspyx from the binaries antspyx-0.5.4-cp39-cp39-win_amd64. I have to stay on pyhton 3.9 because I want to use pyradiomics package, and the latest version I could install it was on python 3.9. every time I tried to read an image with the ants package, the kernel crashes.

To reproduce

This is my toml config file. I am using uv to manage the packages. Just running ants.image_read crashes the kernel.

[project] name = "clamp-precised" version = "0.1.0" description = "Add your description here" readme = "README.md" requires-python = "==3.9.*" dependencies = [ "altair", "ipykernel", "ipywidgets", "itk", "marimo", "matplotlib", "medvae @ https://github.com/EnriqueFV/MedVAE.git", "modin[dask]", "monai[all]", "numpy", "openpyxl", "pandarallel", "pandas", "phate", "pyradiomics", "pingouin", "plotly", "pydicom", "scikit-image", "scikit-learn", "scipy", "seaborn", "shap", "simpleitk", "statsmodels", "torch", "torchvision", "totalsegmentator", "uv", "antspyx @ https://github.com/ANTsX/ANTsPy/releases/download/v0.5.4/antspyx-0.5.4-cp39-cp39-win_amd64.whl", "blosc2>=2.5.1", "polars>=1.34.0", ] [tool.uv.sources] torch = [ { index = "pytorch-cu129", marker = "sys_platform == 'linux' or sys_platform == 'win32'" }, ] torchvision = [ { index = "pytorch-cu129", marker = "sys_platform == 'linux' or sys_platform == 'win32'" }, ] [[tool.uv.index]] name = "pytorch-cu129" url = "https://download.pytorch.org/whl/cu129" explicit = true

for example, running ants.image_read(ants.get_data('mni')) downloads the MNI test file but crashes when it reads it.

EnriqueFV avatar Dec 08 '25 13:12 EnriqueFV