Error using TotalSegmentator in Slicer

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

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

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.

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).