# Radiomics error

**URL:** <https://discourse.slicer.org/t/radiomics-error/2371>\
**Category:** Support\
**Tags:** radiomics\
**Created:** [March 20, 2018, 3:31am UTC](https://discourse.slicer.org/t/radiomics-error/2371 "2018-03-20T03:31:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgastall](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mgastall](https://discourse.slicer.org/u/mgastall)\
**Post date:** [March 20, 2018, 3:31am UTC](https://discourse.slicer.org/t/radiomics-error/2371/1 "2018-03-20T03:31:24Z")

</div>

I get the following error when I am using radiomics:

RadiomicsCLI standard error:

Traceback (most recent call last):  
File “C:\Users\Andrea\AppData\Roaming\NA-MIC\Extensions-27030\SlicerRadiomics\Lib\Slicer-4.9\cli-modules\SlicerRadiomicsCLIScript”, line 6, in  
from radiomics.scripts import commandline  
ImportError: cannot import name commandline

Any help would be appreciated. Thank you.

---

<div class="post-metadata">

**Author:** ![JoostJM](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/joostjm/32/1091_2.png) [@JoostJM](https://discourse.slicer.org/u/JoostJM)\
**Post date:** [March 21, 2018, 9:33am UTC](https://discourse.slicer.org/t/radiomics-error/2371/2 "2018-03-21T09:33:03Z")

</div>

@mgastall, This is indeed a bug in the module, it was caused by a recent update of the commandline interface in PyRadiomics, see also this [PR](https://github.com/Radiomics/pyradiomics/pull/347).  
I fixed this today in [this commit](https://github.com/Radiomics/SlicerRadiomics/commit/5d8e55ccc162a287cb55390f24953827a84bea5c), so it should work in tomorrow’s nightly build.

---

<div class="post-metadata">

**Author:** ![mgastall](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mgastall](https://discourse.slicer.org/u/mgastall)\
**Post date:** [March 21, 2018, 9:48pm UTC](https://discourse.slicer.org/t/radiomics-error/2371/3 "2018-03-21T21:48:18Z")

</div>

Thank you very much. Sorry for the basic question, however, I use editor to draw my ROI or label map. When I try to just use segment editor (as the slice fill in tool is very helpful which is not available in editor) a label map is not created (only a segment) so I cannot use radiomics or cad heterogeneity as it requires a label map. Thank you.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 21, 2018, 10:11pm UTC](https://discourse.slicer.org/t/radiomics-error/2371/4 "2018-03-21T22:11:25Z")

</div>

Export segmentation to labelmap using Segmentations module.

---

<div class="post-metadata">

**Author:** ![JoostJM](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/joostjm/32/1091_2.png) [@JoostJM](https://discourse.slicer.org/u/JoostJM)\
**Post date:** [March 22, 2018, 8:58am UTC](https://discourse.slicer.org/t/radiomics-error/2371/5 "2018-03-22T08:58:36Z")

</div>

The SlicerRadiomics accepts both labelmaps and segments. The necessary conversion is handled by the module logic then.
