# slicer.modules.DICOMWidget.browserWidget.dicomBrowser does not work in preview release

**URL:** https://discourse.slicer.org/t/slicer-modules-dicomwidget-browserwidget-dicombrowser-does-not-work-in-preview-release/23354
**Category:** Support
**Created:** [May 10, 2022, 2:41am UTC](https://discourse.slicer.org/t/slicer-modules-dicomwidget-browserwidget-dicombrowser-does-not-work-in-preview-release/23354 "2022-05-10T02:41:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [May 10, 2022, 2:41am UTC](https://discourse.slicer.org/t/slicer-modules-dicomwidget-browserwidget-dicombrowser-does-not-work-in-preview-release/23354/1 "2022-05-10T02:41:32Z")

</div>

Slicer version 5.1.0, revision 30927, built 2022-05-09, MacOS

I tried to follow an example for loading dicoms form the [Script repository — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#import-dicom-files-into-the-application-s-dicom-database), however

```auto
slicer.modules.DICOMWidget.browserWidget.dicomBrowser

```

does not work, it throws only the following error:

> AttributeError: module ‘modules’ has no attribute ‘DICOMWidget’

---

<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 10, 2022, 4:17am UTC](https://discourse.slicer.org/t/slicer-modules-dicomwidget-browserwidget-dicombrowser-does-not-work-in-preview-release/23354/2 "2022-05-10T04:17:48Z")

</div>

This is how it is supposed to work: module widgets are only instantiated when they are needed (i.e., when you switch to a module the first time). That is why the script example starts with switching to the DICOM module.
