# SlicerRT not compatible with nightly

**URL:** <https://discourse.slicer.org/t/slicerrt-not-compatible-with-nightly/6504>\
**Category:** Development\
**Tags:** bug\
**Created:** [April 15, 2019, 3:20pm UTC](https://discourse.slicer.org/t/slicerrt-not-compatible-with-nightly/6504 "2019-04-15T15:20:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [April 15, 2019, 3:20pm UTC](https://discourse.slicer.org/t/slicerrt-not-compatible-with-nightly/6504/1 "2019-04-15T15:20:55Z")

</div>

When installing SlicerRT it says

File “/Users/alex/Applications/Slicer.app/Contents/Extensions-28138/SlicerRT/lib/Slicer-4.11/qt-scripted-modules/BatchStructureSetConversion.py”, line 233  
except Exception, e:  
^  
SyntaxError: invalid syntax

---

<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 15, 2019, 3:25pm UTC](https://discourse.slicer.org/t/slicerrt-not-compatible-with-nightly/6504/2 "2019-04-15T15:25:51Z")

</div>

Thanks for the report! We are in transition to Python3, which is not a trivial task, so it might take a while until everything is functional again.

I’ll fix this asap though. And please keep reporting anything new that comes up!

---

<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:** [April 15, 2019, 3:38pm UTC](https://discourse.slicer.org/t/slicerrt-not-compatible-with-nightly/6504/3 "2019-04-15T15:38:02Z")

</div>

@cpinter I will submit a PR on SlicerRT with a first round of updates.

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [April 15, 2019, 3:39pm UTC](https://discourse.slicer.org/t/slicerrt-not-compatible-with-nightly/6504/4 "2019-04-15T15:39:46Z")

</div>

Traceback (most recent call last):  
File “/Users/alex/Applications/Slicer.app/Contents/lib/Slicer-4.11/qt-scripted-modules/DICOMLib/DICOMWidgets.py”, line 730, in getLoadablesFromFileLists  
loadablesByPlugin[plugin] = plugin.examineForImport(fileLists)  
File “/Users/alex/Applications/Slicer.app/Contents/Extensions-28138/SlicerRT/lib/Slicer-4.11/qt-scripted-modules/DicomRtImportExportPlugin.py”, line 43, in examineForImport  
for loadableIndex in xrange(0,loadablesCollection.GetNumberOfItems()):  
NameError: name ‘xrange’ is not defined  
Warning: Plugin failed: DicomRtImportExportPlugin

See python console for error message.  
DICOM Plugin failed: name ‘xrange’ is not defined

---

<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 15, 2019, 3:41pm UTC](https://discourse.slicer.org/t/slicerrt-not-compatible-with-nightly/6504/5 "2019-04-15T15:41:48Z")

</div>

@jcfr I’m working on it right now

@Alex_Vergara Please stand by with more error reports until I have committed the first fixes

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [April 15, 2019, 3:42pm UTC](https://discourse.slicer.org/t/slicerrt-not-compatible-with-nightly/6504/6 "2019-04-15T15:42:35Z")

</div>

the last error was not on loading but when trying to import a DICOMRT

---

<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:** [April 15, 2019, 3:53pm UTC](https://discourse.slicer.org/t/slicerrt-not-compatible-with-nightly/6504/7 "2019-04-15T15:53:55Z")

</div>

> [@cpinter](#):
>
> @jcfr I’m working on it right now

@cpinter and I just synced offline and Csaba will continue his effort and i will help as needed later.

---

<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 16, 2019, 1:39pm UTC](https://discourse.slicer.org/t/slicerrt-not-compatible-with-nightly/6504/8 "2019-04-16T13:39:17Z")

</div>

@Alex_Vergara SlicerRT works in the latest nightly. There is one more error coming from Slicer core when you load an RTImage, but otherwise it seems to works well. I’ll still do some tests to make sure, but I think the main functions should be fine now. Thanks for the report!
