# Slicer Radiomics error 

**URL:** https://discourse.slicer.org/t/slicer-radiomics-error/14279
**Category:** Radiomics
**Created:** [October 27, 2020, 8:12pm UTC](https://discourse.slicer.org/t/slicer-radiomics-error/14279 "2020-10-27T20:12:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ngillingham](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@ngillingham](https://discourse.slicer.org/u/ngillingham)
#### Post date: [October 27, 2020, 8:12pm UTC](https://discourse.slicer.org/t/slicer-radiomics-error/14279/1 "2020-10-27T20:12:08Z")

</div>

Hello, I’ve run into the following error with both nightly and stable releases of Slicer, on a Mac. Same error when I tried at work, on Windows, with both nightly and stable release, although I’m not able to poke around the installed software at work as much as I can at home.

```auto
RadiomicsCLI standard error:

Traceback (most recent call last):
  File "/Applications/Slicer 4.11.2 Stable .app/Contents/Extensions-29402/SlicerRadiomics/lib/Slicer-4.11/cli-modules/SlicerRadiomicsCLI.py", line 7, in 
    from radiomics.scripts import parse_args
  File "/Applications/Slicer 4.11.2 Stable .app/Contents/Extensions-29402/SlicerRadiomics/lib/python3.6/site-packages/radiomics/ __init__.py", line 15, in 
    from . import imageoperations
  File "/Applications/Slicer 4.11.2 Stable .app/Contents/Extensions-29402/SlicerRadiomics/lib/python3.6/site-packages/radiomics/imageoperations.py", line 6, in 
    import pywt
ModuleNotFoundError: No module named 'pywt'

```

No improvement after I uninstalled and reinstalled python and pyradiomics (via pip, including all the prerequisites it seems)

I’m not the _most_ tech savvy but I know to find that I have Python 3.8.6 installed.

Thanks for any help,  
Nick

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [October 27, 2020, 8:47pm UTC](https://discourse.slicer.org/t/slicer-radiomics-error/14279/2 "2020-10-27T20:47:24Z")

</div>

This appears to match the reported error that another user reported over at the SlicerRadiomics github repo [https://github.com/Radiomics/SlicerRadiomics/issues/62](https://github.com/Radiomics/SlicerRadiomics/issues/62)

cc: @JoostJM @fedorov

---

<div class="post-metadata">

### Author: ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)
#### Post date: [October 27, 2020, 8:52pm UTC](https://discourse.slicer.org/t/slicer-radiomics-error/14279/3 "2020-10-27T20:52:01Z")

</div>

Yes, we discussed this with @jcfr today, and if I understood correctly, something has changed on the factory machine about 27 days ago, which broke packaging of the pywt extension. JC was going to change something on the factory to fix this.

In the interim, I was able to make the module work again by manually installing the missing packages from the Slicer python console:

```auto
>>> slicer.util.pip_install('pywavelets')
>>> slicer.util.pip_install('python-dateutil')

```

---

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [October 28, 2020, 3:24am UTC](https://discourse.slicer.org/t/slicer-radiomics-error/14279/4 "2020-10-28T03:24:46Z")

</div>

The issue is that `pywavelets` is installed in the main Slicer build tree and this prevent the package from being packaged into the extension.

I manually deleted the package from the `site-packages` in the build tree associated with the latest stable build.

We will re-assess tomorrow.

---

<div class="post-metadata">

### Author: ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)
#### Post date: [November 10, 2020, 7:47pm UTC](https://discourse.slicer.org/t/slicer-radiomics-error/14279/5 "2020-11-10T19:47:00Z")

</div>

Yesterday I added a fix to check for missing modules and install if they are not present. Please check the latest stable build and let us know if the issue is not resolved.
