AIM-Harvard / pyradiomics

Open-source python package for the extraction of Radiomics features from 2D and 3D images and binary masks. Support: https://discourse.slicer.org/c/community/radiomics
http://pyradiomics.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.11k stars 485 forks source link

[BUG] missing `itk` dependency in requirements.txt #829

Open kudhru opened 1 year ago

kudhru commented 1 year ago

Describe the bug I tried building the pyradiomics from source. python setup.py install command was failing due to the below reason:

radiomics/src/_cmatrices.c:6:10: fatal error: 'cmatrices.h' file not found
#include "cmatrices.h"
         ^~~~~~~~~~~~~
1 error generated.
error: Setup script exited with error: command '/usr/bin/clang' failed with exit code 1

I then used ChatGPT and Google Bard. Google Bard suggested that this error is due to missing itk dependency. I then installed using itk using pip install itk and then the python setup.py install command ran successfully.

PyRadiomics configuration NA

PyRadiomics log file NA

To Reproduce Steps to reproduce the behavior: gh repo clone AIM-Harvard/pyradiomics cd pyradiomics pip install -r requirements.txt python setup.py install

Expected behavior Expected it to install but it failed due to the above mentioned reason.

Version (please complete the following information):

Additional context NA

FroeMic commented 1 month ago

I am having the same issue here on an M2 Macbook – anyone who found a solution?