# Problem Q3DC extension

**URL:** <https://discourse.slicer.org/t/problem-q3dc-extension/11374>\
**Category:** Development\
**Tags:** extensions-manager\
**Created:** [May 1, 2020, 3:25am UTC](https://discourse.slicer.org/t/problem-q3dc-extension/11374 "2020-05-01T03:25:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![crisandr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/crisandr/32/6738_2.png) [@crisandr](https://discourse.slicer.org/u/crisandr)\
**Post date:** [May 1, 2020, 3:25am UTC](https://discourse.slicer.org/t/problem-q3dc-extension/11374/1 "2020-05-01T03:25:07Z")

</div>

Hello friends, I installed the Q3DC extension in version 4.10.2 and 4.11.0 In the manage extesions menu if I can see the installed extension. but it does not appear in the Quantification section or when looking for it in modules. Help me please

---

<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:** [May 1, 2020, 4:25pm UTC](https://discourse.slicer.org/t/problem-q3dc-extension/11374/2 "2020-05-01T16:25:53Z")

</div>

Please uninstall and install again. Make sure you wait for the “Restart” button to appear and click that (instead of just closing the window). It may take a few minutes if the extension manager website is under heavy load.

---

<div class="post-metadata">

**Author:** ![crisandr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/crisandr/32/6738_2.png) [@crisandr](https://discourse.slicer.org/u/crisandr)\
**Post date:** [May 3, 2020, 6:44pm UTC](https://discourse.slicer.org/t/problem-q3dc-extension/11374/3 "2020-05-03T18:44:39Z")

</div>

Thanks for your reply Andras Lasso, but I already tried and I continue with the problem. Any other suggestion please?

---

<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:** [May 3, 2020, 7:52pm UTC](https://discourse.slicer.org/t/problem-q3dc-extension/11374/4 "2020-05-03T19:52:59Z")

</div>

We need to be able to reproduce the problem to help with it. Can you save the scene and share it along with a screenshot that shows which input points you selected in Q3DC?

You can upload to dropbox/onedrive/Google drive and post the link here; use data sets that you are allowed to share, such as any of the data sets in SampleData module.

---

<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:** [May 3, 2020, 8:06pm UTC](https://discourse.slicer.org/t/problem-q3dc-extension/11374/5 "2020-05-03T20:06:15Z")

</div>

I wonder if it was a failed install of some python packages that get downloaded from PyPI on startup for this extension. As seen in the code below it will download `networkx` at startup which also requires getting the dependent `decorator` module.

> <https://github.com/DCBIA-OrthoLab/Q3DCExtension/blob/master/Q3DC/Q3DC.py#L18-L24>

The extension should probably be updated to get these packages at build time like how SlicerRadiomics gets some python packages during the build process to package with the extension. Described in [Install python library with extension](https://discourse.slicer.org/t/install-python-library-with-extension/10110/8) or [here](https://github.com/Radiomics/SlicerRadiomics/blob/e72c856edf80e740102a068b5466a070130155f9/SuperBuild/External_python-pyradiomics.cmake). @James_Hoctor or @bpaniagua , it looks like you’ve been doing some maintenance on this extension. You might want to implement this change in the build process.

@crisandr Maybe try using PythonSlicer.exe which is found in your Slicer installation to uninstall/reinstall the packages or clear out any failed downloads in a cached location. Did you install Slicer into a writeable location where the use of `slicer.util.pip_install("networkx")` would succeed when using the python interactor in Slicer?

---

<div class="post-metadata">

**Author:** ![James\_Hoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/james_hoctor/32/6895_2.png) [@James\_Hoctor](https://discourse.slicer.org/u/James_Hoctor)\
**Post date:** [May 5, 2020, 2:43pm UTC](https://discourse.slicer.org/t/problem-q3dc-extension/11374/6 "2020-05-05T14:43:37Z")

</div>

I will make this change to Q3DC. Thanks @jamesobutler for making an issue for this on Github, and for the links.

If these lines are at fault, then there should be some sort of error message from `slicer.util.pip_install` printed in the Python Interactor. Does it make sense to ask @crisandr to check the Interactor on Slicer startup to try to verify that this is the issue?

---

<div class="post-metadata">

**Author:** ![crisandr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/crisandr/32/6738_2.png) [@crisandr](https://discourse.slicer.org/u/crisandr)\
**Post date:** [May 8, 2020, 1:13am UTC](https://discourse.slicer.org/t/problem-q3dc-extension/11374/7 "2020-05-08T01:13:53Z")

</div>

Thanks for your responses, I used ashampoo uninstaller to clear all installation logs, reinstall the program and extension, then restart Slicer3d and the antivirus detected a threat but check as an exception.

I don’t know if that has anything to do with it but it already works

[![](https://dl.dropboxusercontent.com/s/1jkep39q6yhi42w/slicer3d%20excepci%C3%B3n.jpg?dl=0) ](https://dl.dropboxusercontent.com/s/1jkep39q6yhi42w/slicer3d%20excepci%C3%B3n.jpg?dl=0)

---

<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:** [May 21, 2020, 5:20am UTC](https://discourse.slicer.org/t/problem-q3dc-extension/11374/8 "2020-05-21T05:20:00Z")

</div>

> [@crisandr](#):
>
> it does not appear in the Quantification section

It is available when typing `Q3DC` in the search box on the top right or when going to the “Shape Analysis” category

> [@crisandr](#):
>
> it does not appear […] when looking for it in modules. Help me please

Module will be available in the Modules menu only after the corresponding extension has been installed.

> [@crisandr](#):
>
> I used ashampoo uninstaller to clear all installation logs, reinstall the program and extension

I am not familiar with `ashampoo`, uninstalling Slicer is possible from windows “Settings → App & Feature”

After installing Slicer and configuring your antivirus adding the relevant exceptions, which error message to you get when you try to install and then Restart Slicer ?

Consider the extension is [build and packaged](http://slicer.cdash.org/index.php?project=SlicerPreview&date=2020-05-20&filtercount=1&showfilters=1&field1=buildname&compare1=63&value1=Q3DC) on Linux, macOS and Windows, it should be available in the extension manager.

> [@jamesobutler](#):
>
> The extension should probably be updated to get these packages at build time like how SlicerRadiomics gets some python packages during the build process to package with the extension. Described in [Install python library with extension](https://discourse.slicer.org/t/install-python-library-with-extension/10110/8) or [here](https://github.com/Radiomics/SlicerRadiomics/blob/e72c856edf80e740102a068b5466a070130155f9/SuperBuild/External_python-pyradiomics.cmake). @James_Hoctor or @bpaniagua , it looks like you’ve been doing some maintenance on this extension. You might want to implement this change in the build process.

This is now tracked in [Revisit integration of networkx package · Issue #24 · DCBIA-OrthoLab/Q3DCExtension · GitHub](https://github.com/DCBIA-OrthoLab/Q3DCExtension/issues/24) we will increase the complexity of the extension build system after we have a better understand of the problem @crisandr is experiencing.

Since both `networkx` and its dependency `decorator` have wheels (see [here](https://pypi.org/project/networkx/#files) and [here](https://pypi.org/project/decorator/#files)), I would prefer not changing the build system of the extension yet.

Finally, as it was suggested in [Q3DCExtension#22](https://github.com/DCBIA-OrthoLab/Q3DCExtension/issues/22) by @jamesobutler, install of `scipy` with [slicer.util.pip\_install](https://slicer.readthedocs.io/en/latest/developer_guide/slicer.html#slicer.util.pip_install) has been removed in [PR Q3DCExtension#25](https://github.com/DCBIA-OrthoLab/Q3DCExtension/pull/25)
