# Cannot load RTSTRUCT file

**URL:** https://discourse.slicer.org/t/cannot-load-rtstruct-file/35593
**Category:** Support
**Tags:** slicerrt
**Created:** [April 18, 2024, 11:35am UTC](https://discourse.slicer.org/t/cannot-load-rtstruct-file/35593 "2024-04-18T11:35:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Freja](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/freja/32/69609_2.png) [@Freja](https://discourse.slicer.org/u/Freja)
#### Post date: [April 18, 2024, 11:35am UTC](https://discourse.slicer.org/t/cannot-load-rtstruct-file/35593/1 "2024-04-18T11:35:55Z")

</div>

Operating system: MacOS  
Slicer version: 5.6.2

Hello  
I have a problem with loading RTSTRUCT files (RS.dcm) in 3Dslicer. The data is imported without any error massages, and I can see the files in the “DICOM database” window. But when I press load nothing happens. I do not get any error massage but I do not see the files in the “Loaded data” window (se attached screenshot). CT images and RD.dcm fils loads correctly.

I have tried to re-instal RTSlicer. I have also tried different structure-sets, including DICOM-files downloaded from [https://github.com/SlicerRt/SlicerRtData](https://github.com/SlicerRt/SlicerRtData)

I would be very happy for some help!  
Thanks in advance

 ![Screenshot 2024-04-18 at 11.13.14](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/c/ccdd94b8074dfb0a1442ff5b83c00e472a2b0459.png)

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [April 18, 2024, 7:03pm UTC](https://discourse.slicer.org/t/cannot-load-rtstruct-file/35593/2 "2024-04-18T19:03:34Z")

</div>

Please open the Python console using this button  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/3/63442665ce03715700c4ba5064f0a1856d53cc2b.png)  
and copy-paste here the red text you find.

---

<div class="post-metadata">

### Author: ![Freja](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/freja/32/69609_2.png) [@Freja](https://discourse.slicer.org/u/Freja)
#### Post date: [April 19, 2024, 7:35am UTC](https://discourse.slicer.org/t/cannot-load-rtstruct-file/35593/3 "2024-04-19T07:35:19Z")

</div>

Thank you for your help! Opening the Python console made me realize I had problems with installation and that my problem was the same as in this thread: [Failure to load RTSTRUCT dicom file](https://discourse.slicer.org/t/failure-to-load-rtstruct-dicom-file/33504)

I have now also **solved it by installing Slicer 5.2.2** instead of Slicer 5.6.2.

There was alot of red massages when I opend the console so I will not paste all of them here, but for documentation, some of the error massages I got was:  
**When opening slicer after installation:**  
[Qt] Populating font family aliases took 190 ms. Replace uses of missing font family “.AppleSystemUIFont” with one that exists to avoid this cost.

**After restarting slicer after slicerRT installation:**  
Cannot load library /Applications/Slicer.app/Contents/Extensions-32448/SlicerRT/lib/Slicer-5.6/qt-loadable-modules/libqSlicerBeamsModule.dylib: (dlopen(/Applications/Slicer.app/Contents/Extensions-32448/SlicerRT/lib/Slicer-5.6/qt-loadable-modules/libqSlicerBeamsModule.dylib, 0x0085): Library not loaded: @rpath/libomp.dylib

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [April 19, 2024, 9:45am UTC](https://discourse.slicer.org/t/cannot-load-rtstruct-file/35593/4 "2024-04-19T09:45:31Z")

</div>

Ah yes I just see you’re on Mac. That’s right, new Slicer versions do not have SlicerRT on Mac.

> <https://github.com/SlicerRt/SlicerRT/issues/242>
>
> As discussed in this thread https://discourse.slicer.org/t/failure-to-load-rtstr…uct-dicom-file/33504/5, it has been failing at least since Slicer 5.6.1.
> 
> \`\`\`
> Qt\] Error(s):
> \[Qt\] Cannot load library /Applications/Slicer-5.7.0-20240306.app/Contents/Extensions-32750/SlicerRT/lib/Slicer-5.7/qt-loadable-modules/libqSlicerBeamsModule.dylib: (dlopen(/Applications/Slicer-5.7.0-20240306.app/Contents/Extensions-32750/SlicerRT/lib/Slicer-5.7/qt-loadable-modules/libqSlicerBeamsModule.dylib, 0x0085): Library not loaded: @rpath/libomp.dylib
> \[Qt\] Referenced from: \<8CC410E5-7FE3-33F6-BC6E-A68391968FE8\> /Applications/Slicer-5.7.0-20240306.app/Contents/Extensions-32750/SlicerRT/lib/Slicer-5.7/qt-loadable-modules/libvtkSlicerBeamsModuleMRML.dylib
> \[Qt\] Reason: tried: '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../Extensions-32750/QuantitativeReporting/lib/Slicer-5.7/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../Extensions-32750/SlicerDevelopmentToolbox/lib/Slicer-5.7/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../Extensions-32750/IDCBrowser/lib/Slicer-5.7/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../Extensions-32750/DCMQI/lib/Slicer-5.7/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../Extensions-32750/DCMQI/lib/Slicer-5.7/cli-modules/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../Extensions-32750/PETDICOMExtension/lib/Slicer-5.7/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../Extensions-32750/PETDICOMExtension/lib/Slicer-5.7/cli-modules/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../Extensions-32750/SlicerRT/lib/Slicer-5.7/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../Extensions-32750/SlicerRT/lib/Slicer-5.7/cli-modules/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../Extensions-32750/SlicerRT/lib/Slicer-5.7/qt-loadable-modules/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../bin/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../lib/Slicer-5.7/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../lib/Slicer-5.7/cli-modules/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../lib/Slicer-5.7/qt-loadable-modules/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../../lib/Slicer-5.7/qt-loadable-modules/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../lib/Python/lib/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../lib/Python/lib/python3.9/site-packages/numpy/core/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/bin/../lib/Python/lib/python3.9/site-packages/numpy/lib/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/../lib/Slicer-5.7/qt-loadable-modules/libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/qRestAPI-build/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/qRestAPI-build/libomp.dylib' (no such file), '/Users/svc-dashboard/D/Support/clang+llvm-14.0.6-x86\_64-apple-darwin/lib/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/Support/clang+llvm-14.0.6-x86\_64-apple-darwin/lib/libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/qRestAPI-build/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/qRestAPI-build/libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/qRestAPI-build/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/qRestAPI-build/libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/qRestAPI-build/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/qRestAPI-build/libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/qRestAPI-build/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/qRestAPI-build/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/Frameworks/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/Frameworks/QtCore.framework/Versions/5/Frameworks/libomp.dylib' (no such file), '/Applications/Slicer-5.7.0-20240306.app/Contents/MacOS/../libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/CTK-build/CMakeExternals/Install/lib/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/CTK-build/CMakeExternals/Install/lib/libomp.dylib' (no such file), '/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/P/A/teem-build/bin/libomp.dylib' (no such file), '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache))
> \`\`\`
