# Error while using Total Segmentor

**URL:** <https://discourse.slicer.org/t/error-while-using-total-segmentor/35949>\
**Category:** Support\
**Tags:** segmentation, segmentations, segment-editor\
**Created:** [May 6, 2024, 3:57pm UTC](https://discourse.slicer.org/t/error-while-using-total-segmentor/35949 "2024-05-06T15:57:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aayush\_Agrawal\_ch21b](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aayush_agrawal_ch21b/32/69900_2.png) [@Aayush\_Agrawal\_ch21b](https://discourse.slicer.org/u/Aayush_Agrawal_ch21b)\
**Post date:** [May 6, 2024, 3:57pm UTC](https://discourse.slicer.org/t/error-while-using-total-segmentor/35949/1 "2024-05-06T15:57:09Z")

</div>

Traceback (most recent call last):  
File “C:\Users\INSPIRE01\AppData\Local\NA-MIC\Slicer 5.2.2\bin\Python\slicer\util.py”, line 2967, in tryWithErrorDisplay  
yield  
File “C:/Users/INSPIRE01/AppData/Local/NA-MIC/Slicer 5.2.2/NA-MIC/Extensions-31382/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 271, in onApplyButton  
self.logic.process(self.ui.inputVolumeSelector.currentNode(), self.ui.outputSegmentationSelector.currentNode(),  
File “C:/Users/INSPIRE01/AppData/Local/NA-MIC/Slicer 5.2.2/NA-MIC/Extensions-31382/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 859, in process  
self.logProcessOutput(proc)  
File “C:/Users/INSPIRE01/AppData/Local/NA-MIC/Slicer 5.2.2/NA-MIC/Extensions-31382/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 697, in logProcessOutput  
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)  
subprocess.CalledProcessError: Command ‘[‘C:/Users/INSPIRE01/AppData/Local/NA-MIC/Slicer 5.2.2/bin/…/bin\PythonSlicer.EXE’, ‘C:\Users\INSPIRE01\AppData\Local\NA-MIC\Slicer 5.2.2\lib\Python\Scripts\TotalSegmentator’, ‘-i’, ‘C:/Users/INSPIRE01/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2024-05-05\_07+24+30.600/total-segmentator-input.nii’, ‘-o’, ‘C:/Users/INSPIRE01/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2024-05-05\_07+24+30.600/segmentation’, ‘–ml’, ‘–task’, ‘total’, ‘–fast’]’ returned non-zero exit status 2.

I keep getting this error while trying to use TotalSegmentor. PyTorch is installed properly.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [May 6, 2024, 4:29pm UTC](https://discourse.slicer.org/t/error-while-using-total-segmentor/35949/2 "2024-05-06T16:29:12Z")

</div>

Please try with latest Slicer stable (currently 5.6.1) which you can download from [https://download.slicer.org/](https://download.slicer.org/). There have been updates to the latest TotalSegmentator that are available in the latest stable release that are not in the older Slicer 5.2.2 that you are using. Please report back after trying the latest Slicer stable version.
