Slicer v. 5.6.0. Radiomics-module error while extracting features?

Magnus
Thu, 07 Dec 2023 08:23:50 +0000
Support

Hello,

Updated slicer to the latest version (5.6.0). Now I get an error while trying to extract radiomic features using the Radiomics module. See following error message. What can I do?

[2023-12-07 09:15:38] I: radiomics.script: Starting PyRadiomics (version: v3.1.0)
[2023-12-07 09:15:38] I: radiomics.script: Processing input…
[2023-12-07 09:15:38] E: radiomics.script: Error extracting features!
Traceback (most recent call last):
File “C:\Users\magnu\AppData\Local\slicer.org\Slicer 5.6.0\slicer.org\Extensions-32390\SlicerRadiomics\Lib\site-packages\radiomics\scripts_init_.py”, line 135, in run
results = self.processCases(caseGenerator)
File "C:\Users\magnu\AppData\Local\slicer.org\Slicer 5.6.0\slicer.org\Extensions-32390\SlicerRadiomics\Lib\site-packages\radiomics\scripts_init.py", line 233, in _processCases
setting_overrides = self.parseOverrides()
File "C:\Users\magnu\AppData\Local\slicer.org\Slicer 5.6.0\slicer.org\Extensions-32390\SlicerRadiomics\Lib\site-packages\radiomics\scripts_init.py", line 353, in _parseOverrides
settingsSchema = yaml.safe_load(schema)[‘mapping’][‘setting’][‘mapping’]
File “C:\Users\magnu\AppData\Local\slicer.org\Slicer 5.6.0\slicer.org\Extensions-32390\SlicerRadiomics\Lib\site-packages\ruamel\yaml\main.py”, line 1105, in safe_load
error_deprecation(‘safe_load’, ‘load’, arg=“typ=‘safe’, pure=True”)
File “C:\Users\magnu\AppData\Local\slicer.org\Slicer 5.6.0\slicer.org\Extensions-32390\SlicerRadiomics\Lib\site-packages\ruamel\yaml\main.py”, line 1037, in error_deprecation
raise AttributeError(s)
AttributeError:
“safe_load()” has been removed, use

yaml = YAML(typ=‘safe’, pure=True)
yaml.load(…)

instead of file “C:\Users\magnu\AppData\Local\slicer.org\Slicer 5.6.0\slicer.org\Extensions-32390\SlicerRadiomics\Lib\site-packages\radiomics\scripts_init_.py”, line 353

  settingsSchema = yaml.safe_load(schema)['mapping']['setting']['mapping']

6 posts - 2 participants