# TotalSegmentator License Activation Issues

**URL:** <https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866>\
**Category:** Support\
**Tags:** totalsegmentator\
**Created:** [March 13, 2024, 1:28pm UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866 "2024-03-13T13:28:48Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![KewilB](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@KewilB](https://discourse.slicer.org/u/KewilB)\
**Post date:** [March 13, 2024, 1:28pm UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/1 "2024-03-13T13:28:48Z")

</div>

I recently obtained a license in order to use the heartchambers highres option. I am unable to activate my license. When I put the code sent to my email in the python console, I get a syntax error. Not sure if this is the correct place to activate the license and I cannot find any help online

---

<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:** [March 13, 2024, 1:40pm UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/2 "2024-03-13T13:40:06Z")

</div>

if you use slicer 5.6, you can do it directly form the totalsegmentator extension

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/e/6e945e5dbe8fec5b70e277adfd9c33bfd6242a33.png)

---

<div class="post-metadata">

**Author:** ![Camille\_Guillerminet](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/camille_guillerminet/32/79882_2.png) [@Camille\_Guillerminet](https://discourse.slicer.org/u/Camille_Guillerminet)\
**Post date:** [April 1, 2025, 3:43pm UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/3 "2025-04-01T15:43:28Z")

</div>

Hello,

Could you tell me how to obtain a licence activation in order to segment the CT with the model tissue.

Tx in advance,  
Camille

---

<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:** [April 1, 2025, 4:52pm UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/4 "2025-04-01T16:52:41Z")

</div>

For non-commercial license you can go there [Streamlit](https://backend.totalsegmentator.com/license-academic/)

For a commercial license contact [jakob.wasserthal@usb.ch](mailto:jakob.wasserthal@usb.ch))

---

<div class="post-metadata">

**Author:** ![doc-xie](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@doc-xie](https://discourse.slicer.org/u/doc-xie)\
**Post date:** [April 9, 2025, 2:43am UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/5 "2025-04-09T02:43:44Z")

</div>

Hi,everyone,  
The error information during TotalSegmentator installing as below:  
Traceback (most recent call last):  
File “/Applications/Slicer.app/Contents/bin/Python/slicer/util.py”, line 3255, in tryWithErrorDisplay  
yield  
File “/Applications/Slicer.app/Contents/Extensions-32448/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 334, in onSetLicense  
self.logic.setupPythonRequirements()  
File “/Applications/Slicer.app/Contents/Extensions-32448/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 806, in setupPythonRequirements  
skippedRequirements = self.pipInstallSelective(  
File “/Applications/Slicer.app/Contents/Extensions-32448/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 708, in pipInstallSelective  
slicer.util.pip\_install(requirement)  
File “/Applications/Slicer.app/Contents/bin/Python/slicer/util.py”, line 3887, in pip\_install  
\_executePythonModule(“pip”, args)  
File “/Applications/Slicer.app/Contents/bin/Python/slicer/util.py”, line 3848, in \_executePythonModule  
logProcessOutput(proc)  
File “/Applications/Slicer.app/Contents/bin/Python/slicer/util.py”, line 3814, in logProcessOutput  
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)  
subprocess.CalledProcessError: Command ‘[’/Applications/Slicer.app/Contents/bin/../bin/PythonSlicer’, ‘-m’, ‘pip’, ‘install’, ‘dicom2nifti’]’ returned non-zero exit status 2.  
What is the reason about this and how to solve the issue?  
Thanksm

---

<div class="post-metadata">

**Author:** ![bulala](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@bulala](https://discourse.slicer.org/u/bulala)\
**Post date:** [September 29, 2025, 9:09am UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/6 "2025-09-29T09:09:20Z")

</div>

Have you solved it? I encountered the same problem and the license setting failed.

> **Original message**
>
> 请问您解决了吗，我遇到了相同问题，license设置失败

---

<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:** [September 29, 2025, 5:50pm UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/7 "2025-09-29T17:50:23Z")

</div>

See more details here: [TotalSegmentator Extra Task License Not Saved in Slicer 6.2 - #14 by bulala](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/14)

@bulala Please give a chance for people to respond before posting the same question at multiple places. In exceptional cases, if you are desperate to get an answer as soon as possible from as many people as possible at the same time, then it might be acceptable to post to several topics at once, but then at least add a link to all other places where you asked to make people aware of this.

---

<div class="post-metadata">

**Author:** ![doc-xie](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@doc-xie](https://discourse.slicer.org/u/doc-xie)\
**Post date:** [September 30, 2025, 3:43am UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/8 "2025-09-30T03:43:45Z")

</div>

The problem has not been solved until now.

---

<div class="post-metadata">

**Author:** ![Romulo\_Alfaro](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/romulo_alfaro/32/77327_2.png) [@Romulo\_Alfaro](https://discourse.slicer.org/u/Romulo_Alfaro)\
**Post date:** [October 1, 2025, 12:47am UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/9 "2025-10-01T00:47:22Z")

</div>

> **[TotalSegmentator.py](https://drive.google.com/file/d/1GUVRDZbyZJZtoQERImdVhWro7T6MdhWy/view?usp=sharing)**
>
> Google Drive file.

**First, replace the following Python file in the directory (you can make a backup copy if you wish):**  
`C:\Users\XXXXX\AppData\Local\slicer.org\Slicer 5.8.1\slicer.org\Extensions-33241\TotalSegmentator\lib\Slicer-5.8\qt-scripted-modules`  
**Then try entering your license number again.  
Please let me know if it worked for you.**

---

<div class="post-metadata">

**Author:** ![bulala](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@bulala](https://discourse.slicer.org/u/bulala)\
**Post date:** [October 10, 2025, 8:35am UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/11 "2025-10-10T08:35:12Z")

</div>

> [@bulala](#):
>
> I have completed the replacement, but it still failed. Could you please help me figure out what the reason might be?

I have completed the replacement, but it still failed. Could you please help me figure out what the reason might be?

Failed to set TotalSegmentator license.

Command ‘[‘C:/Users/localadmin/AppData/Local/slicer.org/Slicer 5.8.1/bin/../bin\\PythonSlicer.EXE’, ‘C:\\Users\\localadmin\\AppData\\Local\\slicer.org\\Slicer 5.8.1\\lib\\Python\\Scripts\\totalseg\_set\_license.exe’, ‘-l’, ‘aca\_L3S919KUQIFOHA’]’ returned non-zero exit status 1.

Failed to set TotalSegmentator license.

Command ‘[‘C:/Users/localadmin/AppData/Local/slicer.org/Slicer 5.8.1/bin/../bin\\PythonSlicer.EXE’, ‘C:\\Users\\localadmin\\AppData\\Local\\slicer.org\\Slicer 5.8.1\\lib\\Python\\Scripts\\totalseg\_set\_license.exe’, ‘-l’, ‘aca\_L3S919KUQIFOHA’]’ returned non-zero exit status 1.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/3/03f99d0ffdc6b57c33e80aab5de5886500274125.png)Could you kindly confirm whether the connection failure is network-related?

When I run the license tool from the command line:“C:\Users\localadmin\AppData\Local\slicer.org\Slicer 5.8.1\bin\PythonSlicer.EXE”  
“C:\Users\localadmin\AppData\Local\slicer.org\Slicer 5.8.1\lib\Python\Scripts\totalseg\_set\_license.exe” -l aca\_L3S919KUQIFOHA

t times out while attempting to reach `backend.totalsegmentator.com:80`.

My security team is willing to open outbound access.  
Should I allow **TCP 443 (HTTPS)** to `https://backend.totalsegmentator.com/` for the validation to succeed?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/d/9d626638764806d9c4a3042f653c84da604eeb93.png)

---

<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:** [October 10, 2025, 12:47pm UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/12 "2025-10-10T12:47:53Z")

</div>

You need to allow network connectivity for license check and model downloads. From what you describe it seems that you need to allow connection to port 80 at [backend.totalsegmentator.com](http://backend.totalsegmentator.com), but you may need to enable some more for model download.

---

<div class="post-metadata">

**Author:** ![bulala](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@bulala](https://discourse.slicer.org/u/bulala)\
**Post date:** [October 11, 2025, 1:29am UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/13 "2025-10-11T01:29:18Z")

</div>

Thank you very much for your reply. May I ask if the license tab is grayed out after a successful setup? I’m using version **3D Slicer 5.8.1, win11**. When I enter the license, it prompts me to restart 3D Slicer. However, when I open the software again and check the license setup tab, it becomes empty again. I don’t know if the setup was successful. Please see the screenshot below.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/9/29828041646ffc49b2970dc2c15b75fb278e5cfe.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/d/2d65a0971878c09841b40d9b74c2d793375a0b28.png)Name: TotalSegmentator

Version: 2.10.0

Summary: Robust segmentation of 104 classes in CT images.

Home-page: [GitHub - wasserth/TotalSegmentator: Tool for robust segmentation of \>100 important anatomical structures in CT and MR images](https://github.com/wasserth/TotalSegmentator)

Author: Jakob Wasserthal

Author-email: jakob.wasserthal@usb.ch

License: Apache 2.0

Location: d:\3d\_slicer\lib\python\lib\site-packages

Requires: dicom2nifti, nibabel, nnunetv2, numpy, pyarrow, requests, SimpleITK, torch, tqdm, xvfbwrapper

Required-by:

When I enter the license on **another computer (Windows 11, 3D Slicer 5.8.1)**,3d slicer log：

[Python] Failed to set TotalSegmentator license. [Python] Command ‘[‘C:/3D\_Slicer\_package/Slicer 5.8.1/bin/../bin\\PythonSlicer.EXE’, ‘C:\\3D\_Slicer\_package\\Slicer 5.8.1\\lib\\Python\\Scripts\\totalseg\_set\_license.exe’, ‘-l’, ‘aca\_FU8HUMWANYM6K5’]’ returned non-zero exit status 1. [Qt] A cookie associated with a cross-site resource at [http://www.nitrc.org/](http://www.nitrc.org/) was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application\>Storage\>Cookies and see more details at [Chrome Platform Status](https://www.chromestatus.com/feature/5088147346030592) and [Chrome Platform Status](https://www.chromestatus.com/feature/5633521622188032) . Traceback (most recent call last): File “C:/3D\_Slicer\_package/Slicer 5.8.1/slicer.org/Extensions-33241/TotalSegmentator/lib/Slicer-5.8/qt-scripted-modules/TotalSegmentator.py”, line 337, in onSetLicense self.logic.setLicense(licenseText) File “C:/3D\_Slicer\_package/Slicer 5.8.1/slicer.org/Extensions-33241/TotalSegmentator/lib/Slicer-5.8/qt-scripted-modules/TotalSegmentator.py”, line 944, in setLicense licenseToolOutput = self.logProcessOutput(proc, returnOutput=True) File “C:/3D\_Slicer\_package/Slicer 5.8.1/slicer.org/Extensions-33241/TotalSegmentator/lib/Slicer-5.8/qt-scripted-modules/TotalSegmentator.py”, line 900, in logProcessOutput raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr) subprocess.CalledProcessError: Command ‘[‘C:/3D\_Slicer\_package/Slicer 5.8.1/bin/../bin\\PythonSlicer.EXE’, ‘C:\\3D\_Slicer\_package\\Slicer 5.8.1\\lib\\Python\\Scripts\\totalseg\_set\_license.exe’, ‘-l’, ‘aca\_FU8HUMWANYM6K5’]’ returned non-zero exit status

---

<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:** [October 11, 2025, 2:43am UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/14 "2025-10-11T02:43:29Z")

</div>

> [@bulala](#):
>
> However, when I open the software again and check the license setup tab, it becomes empty again

That’s the correct behavior: the license key input box should always appear empty. This is because we don’t store the license number in Slicer (it is passed to TotalSegmentator, which authenticates with the server and stores the authentication result).

The screenshot shows that the license is successfully authenticated:

> License has been successfully saved.  
> License has been successfully set.

After that you included some logs that showed an error. Maybe your firewall or proxy server interfered with the authentication. But if you have already set the license successfully once then you don’t need to worry about it, it should work well.

---

<div class="post-metadata">

**Author:** ![bulala](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@bulala](https://discourse.slicer.org/u/bulala)\
**Post date:** [October 11, 2025, 8:23am UTC](https://discourse.slicer.org/t/totalsegmentator-license-activation-issues/34866/15 "2025-10-11T08:23:44Z")

</div>

Thank you so much for your generous and prompt responses! I have successfully resolved the issue and can now use the software normally. I truly appreciate all your help—thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you！
