# Error using TotalSegmentator in Slicer

**URL:** <https://discourse.slicer.org/t/error-using-totalsegmentator-in-slicer/36255>\
**Category:** Support\
**Tags:** segmentation, extensions-manager, totalsegmentator\
**Created:** [May 19, 2024, 1:11am UTC](https://discourse.slicer.org/t/error-using-totalsegmentator-in-slicer/36255 "2024-05-19T01:11:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![khajta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/khajta/32/76581_2.png) [@khajta](https://discourse.slicer.org/u/khajta)\
**Post date:** [May 19, 2024, 1:11am UTC](https://discourse.slicer.org/t/error-using-totalsegmentator-in-slicer/36255/1 "2024-05-19T01:11:38Z")

</div>

Dear experts,

I tried to use TotalSegmentator extionsion, but it showed the error. Thank you in advance for suggestions.

Best regards,  
Khajonsak  
 ![Screenshot 2024-05-19 100254](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/b/2bd241e300e988a6c00832daf5b0dbc06482fd2a.png)

---

<div class="post-metadata">

**Author:** ![Matteboo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/matteboo/32/66548_2.png) [@Matteboo](https://discourse.slicer.org/u/Matteboo)\
**Post date:** [May 21, 2024, 11:32am UTC](https://discourse.slicer.org/t/error-using-totalsegmentator-in-slicer/36255/2 "2024-05-21T11:32:21Z")

</div>

Hello, could you copy paste the whole error message, it’s difficult to help you without getting the full error

---

<div class="post-metadata">

**Author:** ![khajta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/khajta/32/76581_2.png) [@khajta](https://discourse.slicer.org/u/khajta)\
**Post date:** [June 7, 2024, 3:30am UTC](https://discourse.slicer.org/t/error-using-totalsegmentator-in-slicer/36255/3 "2024-06-07T03:30:12Z")

</div>

Thank you for your reply. Sorry for very late reply. These are the error.

Command ‘[‘C:/Users/アイソトープ部/OneDrive/デスクトップ/Nook/3DSlicer software/Slicer 5.6.2/bin/…/bin\PythonSlicer.EXE’, ‘C:\Users\アイソトープ部\OneDrive\デスクトップ\Nook\3DSlicer software\Slicer 5.6.2\lib\Python\Scripts\TotalSegmentator.exe’, ‘-i’, ‘C:/Users/アイソトープ部/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2024-06-07\_12+28+22.569/total-segmentator-input.nii’, ‘-o’, ‘C:/Users/アイソトープ部/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2024-06-07\_12+28+22.569/segmentation’, ‘–ml’, ‘–task’, ‘total’]’ returned non-zero exit status 1.

Traceback (most recent call last):  
File “C:\Users\アイソトープ部\OneDrive\デスクトップ\Nook\3DSlicer software\Slicer 5.6.2\bin\Python\slicer\util.py”, line 3255, in tryWithErrorDisplay  
yield  
File “C:/Users/アイソトープ部/OneDrive/デスクトップ/Nook/3DSlicer software/Slicer 5.6.2/slicer.org/Extensions-32448/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 298, in onApplyButton  
self.logic.process(self.ui.inputVolumeSelector.currentNode(), self.ui.outputSegmentationSelector.currentNode(),  
File “C:/Users/アイソトープ部/OneDrive/デスクトップ/Nook/3DSlicer software/Slicer 5.6.2/slicer.org/Extensions-32448/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 961, in process  
self.processVolume(inputFile, inputVolume,  
File “C:/Users/アイソトープ部/OneDrive/デスクトップ/Nook/3DSlicer software/Slicer 5.6.2/slicer.org/Extensions-32448/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 1035, in processVolume  
self.logProcessOutput(proc)  
File “C:/Users/アイソトープ部/OneDrive/デスクトップ/Nook/3DSlicer software/Slicer 5.6.2/slicer.org/Extensions-32448/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 807, in logProcessOutput  
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)  
subprocess.CalledProcessError: Command ‘[‘C:/Users/アイソトープ部/OneDrive/デスクトップ/Nook/3DSlicer software/Slicer 5.6.2/bin/…/bin\PythonSlicer.EXE’, ‘C:\Users\アイソトープ部\OneDrive\デスクトップ\Nook\3DSlicer software\Slicer 5.6.2\lib\Python\Scripts\TotalSegmentator.exe’, ‘-i’, ‘C:/Users/アイソトープ部/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2024-06-07\_12+28+22.569/total-segmentator-input.nii’, ‘-o’, ‘C:/Users/アイソトープ部/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2024-06-07\_12+28+22.569/segmentation’, ‘–ml’, ‘–task’, ‘total’]’ returned non-zero exit status 1.

---

<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:** [June 19, 2024, 1:54pm UTC](https://discourse.slicer.org/t/error-using-totalsegmentator-in-slicer/36255/4 "2024-06-19T13:54:31Z")

</div>

It is possible that the special characters in the path cause problems. Please try to install Slicer in a short and simple path without any special characters (such as `C:\tmp\Slicer`) and set the temporary folder in Slicer’s application settings to a similar one (such as `C:\temp\SlicerTemp`).
