# Totalsegmentator error in first use, tried multiple times of uninstall and reinstall

**URL:** <https://discourse.slicer.org/t/totalsegmentator-error-in-first-use-tried-multiple-times-of-uninstall-and-reinstall/32263>\
**Category:** Support\
**Tags:** segmentation, python, totalsegmentator\
**Created:** [October 17, 2023, 5:03am UTC](https://discourse.slicer.org/t/totalsegmentator-error-in-first-use-tried-multiple-times-of-uninstall-and-reinstall/32263 "2023-10-17T05:03:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pssi\_92](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pssi_92/32/66407_2.png) [@pssi\_92](https://discourse.slicer.org/u/pssi_92)\
**Post date:** [October 17, 2023, 5:03am UTC](https://discourse.slicer.org/t/totalsegmentator-error-in-first-use-tried-multiple-times-of-uninstall-and-reinstall/32263/1 "2023-10-17T05:03:04Z")

</div>

I just bought new desktop for my research, and installed Slicer 5.4.0 and Totalsegmentator extension. But an error showed up. I tried multiple times of deletion of the Slicer (Uninstall with [Slicer.org](http://Slicer.org) folder deletion), and reinstallation.  
But nothing changed.

This is the step that I had.  
Step 1. Install GPU driver in GeForce experience.  
Step 2. Install CUDA with the CUDA link in the Totalsegmentator Github page.  
Step 3. Install Slicer 5.4.0  
Step 4. Install Totalsegmentator in the Extension manager.  
Step 5. Load sample data in Slicer and run the totalsegmentator.  
and an error showed up.

My computer information just in case:  
CPU: 13th Gen Intel(R) Core™ i7-13700F  
GPU: Nvidia GeForce RTX 4070 (Driver version: 537.58)  
RAM: 16Gb  
CUDA: 12.2

This is the Error message following:

Traceback (most recent call last):  
File “C:\Users\pssi9\AppData\Local\slicer.org\Slicer 5.4.0\bin\Python\slicer\util.py”, line 3146, in tryWithErrorDisplay  
yield  
File “C:/Users/pssi9/AppData/Local/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/TotalSegmentator/lib/Slicer-5.4/qt-scripted-modules/TotalSegmentator.py”, line 271, in onApplyButton  
self.logic.process(self.ui.inputVolumeSelector.currentNode(), self.ui.outputSegmentationSelector.currentNode(),  
File “C:/Users/pssi9/AppData/Local/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/TotalSegmentator/lib/Slicer-5.4/qt-scripted-modules/TotalSegmentator.py”, line 868, in process  
self.logProcessOutput(proc)  
File “C:/Users/pssi9/AppData/Local/slicer.org/Slicer 5.4.0/slicer.org/Extensions-31938/TotalSegmentator/lib/Slicer-5.4/qt-scripted-modules/TotalSegmentator.py”, line 701, in logProcessOutput  
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)  
subprocess.CalledProcessError: Command ‘[‘C:/Users/pssi9/AppData/Local/slicer.org/Slicer 5.4.0/bin/…/bin\PythonSlicer.EXE’, ‘C:\Users\pssi9\AppData\Local\slicer.org\Slicer 5.4.0\lib\Python\Scripts\TotalSegmentator’, ‘-i’, ‘C:/Users/pssi9/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2023-10-16\_23+50+39.954/total-segmentator-input.nii’, ‘-o’, ‘C:/Users/pssi9/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2023-10-16\_23+50+39.954/segmentation’, ‘–ml’, ‘–task’, ‘total’]’ returned non-zero exit status 1.

What should I do to fix the problem?

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [October 17, 2023, 5:24am UTC](https://discourse.slicer.org/t/totalsegmentator-error-in-first-use-tried-multiple-times-of-uninstall-and-reinstall/32263/2 "2023-10-17T05:24:12Z")

</div>

Please try:

Delete the complete folder.  
Install 3D Slicer.  
Install Pytorch extension, run it and restart Slicer.  
Install TotalSegmenter extension, it should install itself on the first run. Otherwise, force install it again ( under “Advanced” do not check the latest developer version) and restart Slicer.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/4/f4bdaa4abfd79d849d35252754cf23309988f158.png)

Best

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [October 17, 2023, 6:04am UTC](https://discourse.slicer.org/t/totalsegmentator-error-in-first-use-tried-multiple-times-of-uninstall-and-reinstall/32263/3 "2023-10-17T06:04:26Z")

</div>

Just tested a new installation and got a similar error.  
It seems as if the zenodo server, which holds the weights for download, is not active right now. Sorry for this error which will be passed to the developers. @wasserth

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [October 17, 2023, 9:17am UTC](https://discourse.slicer.org/t/totalsegmentator-error-in-first-use-tried-multiple-times-of-uninstall-and-reinstall/32263/4 "2023-10-17T09:17:23Z")

</div>

We have identified the error and will update the extension during the next few days.

---

<div class="post-metadata">

**Author:** ![pssi\_92](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pssi_92/32/66407_2.png) [@pssi\_92](https://discourse.slicer.org/u/pssi_92)\
**Post date:** [October 17, 2023, 3:55pm UTC](https://discourse.slicer.org/t/totalsegmentator-error-in-first-use-tried-multiple-times-of-uninstall-and-reinstall/32263/5 "2023-10-17T15:55:57Z")

</div>

That is great.  
I did Force reinstall during multiple uninstall and reinstall, but same.  
Anyway, thank you for the reply!
