# slicer.qSlicerWebWidget() disable extension manager install

**URL:** <https://discourse.slicer.org/t/slicer-qslicerwebwidget-disable-extension-manager-install/17398>\
**Category:** Development\
**Created:** [April 30, 2021, 6:16pm UTC](https://discourse.slicer.org/t/slicer-qslicerwebwidget-disable-extension-manager-install/17398 "2021-04-30T18:16:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbordignon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fbordignon/32/5269_2.png) [@fbordignon](https://discourse.slicer.org/u/fbordignon)\
**Post date:** [April 30, 2021, 6:16pm UTC](https://discourse.slicer.org/t/slicer-qslicerwebwidget-disable-extension-manager-install/17398/1 "2021-04-30T18:16:18Z")

</div>

Hello everyone, if I instantiate a webwidget before launching the extensions manager, I cannot install extensions anymore. Steps to reproduce.

1. Python console:

> slicer.qSlicerWebWidget()

1. Open the extension manager for the **first time**
2. The extensions buttons only show the Download option.

---

<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 7, 2021, 2:02pm UTC](https://discourse.slicer.org/t/slicer-qslicerwebwidget-disable-extension-manager-install/17398/2 "2021-05-07T14:02:33Z")

</div>

Thanks for reporting. We have encountered this issue before but [thought it was due to the DataStore module](https://github.com/Slicer/Slicer/issues/4602), so it did not get much attention.

I’ve submitted a new bug report for this to ensure it has more visibility:

> <https://github.com/Slicer/Slicer/issues/5632>
>
> if I instantiate a webwidget before launching the extensions manager, I cannot i…nstall extensions anymore. Steps to reproduce.
> 
> Python console:
> \`\`\`python
> slicer.qSlicerWebWidget()
> \`\`\`
> 
> Open the extension manager for the first time
> The extensions buttons only show the Download option.
> 
> (reported on discourse.slicer.org: https://discourse.slicer.org/t/slicer-qslicerwebwidget-disable-extension-manager-install/17398)
> 
> This issue has been first reported in https://github.com/Slicer/Slicer/issues/4602. It was thought to be a side effect of the DataStore module initialization, but as it turns out, the problem is at lower level.
> 
> \## Steps to reproduce
> 
> \- Start Slicer
> \- instantiate a web widget by \`slicer.qSlicerWebWidget()\`
> \- open extensions manager =\> "Download" buttons are displayed instead of "Install"
> 
> !\[image\](https://user-images.githubusercontent.com/307929/117460816-e8856980-af1a-11eb-9233-fbe1b6e38765.png)
> 
> \## Environment
> \- Slicer version: Slicer-4.11.20210226
> \- Operating system: Windows

@pieper I think you have worked on this part of the code in the past, could you have a look at?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [May 7, 2021, 2:09pm UTC](https://discourse.slicer.org/t/slicer-qslicerwebwidget-disable-extension-manager-install/17398/3 "2021-05-07T14:09:45Z")

</div>

Let’s see what happens with the new extension manager implementation. If it’s still an issue we can dig in deeper. I added a comment in the github issue about a possible cause.
