AIM-Harvard / SlicerRadiomics

A Slicer extension to provide a GUI around pyradiomics
BSD 3-Clause "New" or "Revised" License
106 stars 48 forks source link

Feature calculation failed on windows #56

Closed chengjianhong closed 4 years ago

chengjianhong commented 5 years ago

Hi, I install the slicerRadiomics on 3D Slicer by extensions manager. But it occurs the following errors when I use it to extract the brain tumor features.

Feature calculation failed. Feature calculation failed. Traceback (most recent call last): File "C:/Users/15526/AppData/Roaming/NA-MIC/Extensions-27931/SlicerRadiomics/lib/Slicer-4.10/qt-scripted-modules/SlicerRadiomics.py", line 405, in onApplyButton self.onFinished) File "C:/Users/15526/AppData/Roaming/NA-MIC/Extensions-27931/SlicerRadiomics/lib/Slicer-4.10/qt-scripted-modules/SlicerRadiomics.py", line 735, in runCLI self.runCLIWithParameterFile(imageNode, maskNode, tableNode, parameterFile, callback) File "C:/Users/15526/AppData/Roaming/NA-MIC/Extensions-27931/SlicerRadiomics/lib/Slicer-4.10/qt-scripted-modules/SlicerRadiomics.py", line 773, in runCLIWithParameterFile self._startCLI(firstRun=True) File "C:/Users/15526/AppData/Roaming/NA-MIC/Extensions-27931/SlicerRadiomics/lib/Slicer-4.10/qt-scripted-modules/SlicerRadiomics.py", line 531, in _startCLI labelName, labelNode, label_idx, imageNode = self._labelGenerators.next() AttributeError: 'itertools.chain' object has no attribute 'next'

JoostJM commented 5 years ago

Hi, this is a duplicate issue, which is addressed in the PyRadiomics forum.

Short answer: due to 3D Slicer's transition to Python 3. The bug has already been fixed (36e0965), but requires you to install a newer nightly build.

jamesobutler commented 5 years ago

I believe https://github.com/Radiomics/SlicerRadiomics/commit/5fedf5b724f5303b920936266f8d18de922e0d28 has fixed this issue so this can be closed.