# DICOM module not working when used as startup module

**URL:** <https://discourse.slicer.org/t/dicom-module-not-working-when-used-as-startup-module/20474>\
**Category:** Support\
**Created:** [November 3, 2021, 2:37pm UTC](https://discourse.slicer.org/t/dicom-module-not-working-when-used-as-startup-module/20474 "2021-11-03T14:37:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamieawren](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jamieawren](https://discourse.slicer.org/u/jamieawren)\
**Post date:** [November 3, 2021, 2:37pm UTC](https://discourse.slicer.org/t/dicom-module-not-working-when-used-as-startup-module/20474/1 "2021-11-03T14:37:52Z")

</div>

Hi everyone,

Overnight, the DICOM module has stopped working, see attached screenshot. I am seeing this error, too

Traceback (most recent call last):  
File “/Applications/Slicer.app/Contents/lib/Slicer-4.11/qt-scripted-modules/DICOM.py”, line 678, in exit  
self.browserWidget.close()  
AttributeError: ‘NoneType’ object has no attribute ‘close’

I have updated to the most recent stable build and the behavior is persisting. Interestingly, the behavior is not replicated when Slicer is opened for other users on the same computer.

Any help would be greatly appreciated!

Jamie

 ![Screen Shot 2021-11-03 at 10.34.12 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/2/328ccb3d60178ee6c4d5f86933378365c70526ca.png)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [November 3, 2021, 2:40pm UTC](https://discourse.slicer.org/t/dicom-module-not-working-when-used-as-startup-module/20474/2 "2021-11-03T14:40:38Z")

</div>

İs it possible that you modified your DICOM db location? The location shown in screenshot doesn’t seem right. And i think that setting carries over from versions.

---

<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:** [November 3, 2021, 2:41pm UTC](https://discourse.slicer.org/t/dicom-module-not-working-when-used-as-startup-module/20474/3 "2021-11-03T14:41:13Z")

</div>

Probably something got broken in the settings. These documents should help. If it happens again let us know if you figure out what led to the issue so we can reproduce.

[https://slicer.readthedocs.io/en/latest/user\_guide/settings.html?highlight=settings#settings-file-location](https://slicer.readthedocs.io/en/latest/user_guide/settings.html?highlight=settings#settings-file-location)

---

<div class="post-metadata">

**Author:** ![jamieawren](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jamieawren](https://discourse.slicer.org/u/jamieawren)\
**Post date:** [November 3, 2021, 2:44pm UTC](https://discourse.slicer.org/t/dicom-module-not-working-when-used-as-startup-module/20474/4 "2021-11-03T14:44:23Z")

</div>

I reset the Application Settings (DICOM module was set as the default module on open) and it works like a charm now! Thank you so much for your speedy solution!

Jamie

---

<div class="post-metadata">

**Author:** ![jamieawren](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jamieawren](https://discourse.slicer.org/u/jamieawren)\
**Post date:** [November 3, 2021, 2:45pm UTC](https://discourse.slicer.org/t/dicom-module-not-working-when-used-as-startup-module/20474/5 "2021-11-03T14:45:42Z")

</div>

It’s very possible, I discovered that the behavior resolved when I stopped using DICOM as the default module on open.

---

<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:** [November 4, 2021, 4:55am UTC](https://discourse.slicer.org/t/dicom-module-not-working-when-used-as-startup-module/20474/6 "2021-11-04T04:55:55Z")

</div>

Setting the DICOM module as startup module can be very useful and I see that currently an error is thrown if you do this. I’ll fix this error tomorrow.

---

<div class="post-metadata">

**Author:** ![jamieawren](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jamieawren](https://discourse.slicer.org/u/jamieawren)\
**Post date:** [November 4, 2021, 1:54pm UTC](https://discourse.slicer.org/t/dicom-module-not-working-when-used-as-startup-module/20474/7 "2021-11-04T13:54:08Z")

</div>

Great! Thank you very much, it would be very helpful to have the DICOM module as default!

---

<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:** [November 4, 2021, 4:45pm UTC](https://discourse.slicer.org/t/dicom-module-not-working-when-used-as-startup-module/20474/8 "2021-11-04T16:45:02Z")

</div>

The [fix](https://github.com/Slicer/Slicer/commit/ceb56b25b6b45ab59917c0195738919486869365) will be available in the Slicer Preview Release from tomorrow.
