# TotalSegmentator Extra Task License Not Saved in Slicer 6.2

**URL:** https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622
**Category:** Support
**Created:** [April 19, 2024, 2:24pm UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622 "2024-04-19T14:24:26Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![evaherbst](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/evaherbst/32/65595_2.png) [@evaherbst](https://discourse.slicer.org/u/evaherbst)
#### Post date: [April 19, 2024, 2:24pm UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/1 "2024-04-19T14:24:27Z")

</div>

Hi all,

I added the license for the extra tasks for TotalSegmentator as I did in previous versions.  
The license is added but I get prompted to restart slicer, and after restarting, the license is gone again (whereas previous versions saved the license)

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

Thank you,  
Eva

---

<div class="post-metadata">

### Author: ![evaherbst](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/evaherbst/32/65595_2.png) [@evaherbst](https://discourse.slicer.org/u/evaherbst)
#### Post date: [April 22, 2024, 12:59pm UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/2 "2024-04-22T12:59:57Z")

</div>

I just double checked, in Slicer 6.1 I have the same issue. The license is accepted as in the screenshot above, but when I restart as requested, the license disappears again and the field is empty.

@lassoan should I add an issue directly in the github for TotalSegmentator Slicer extension?

---

<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: [April 22, 2024, 6:17pm UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/3 "2024-04-22T18:17:53Z")

</div>

> [@evaherbst](#):
>
> The license is accepted as in the screenshot above, but when I restart as requested, the license disappears again and the field is empty.

You only need to set the license once (not at each startup). If the license has been successfully set then you are done, it should all work.

---

<div class="post-metadata">

### Author: ![evaherbst](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/evaherbst/32/65595_2.png) [@evaherbst](https://discourse.slicer.org/u/evaherbst)
#### Post date: [April 23, 2024, 8:23am UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/5 "2024-04-23T08:23:01Z")

</div>

Hi Andras,

It says the license is accepted (see screenshot in initial post) but it is not saved.

I tried with the new license and it still does not work.  
I also tried reinstalling Slicer 5.6.2 and it also does not fix the issue.

It always says the license is accepted and set but it is never saved, and every time I enter it, it requires a restart, and then it isn’t saved again.

I see there is a totalseg\_set\_license.exe, I tried running just this part of the TotalSegmentator code in a separate python file and I get no issues  
but it does not solve my problem of the license not being saved

cmd = [  
pythonSlicerExecutablePath,  
totalSegmentatorLicenseToolExecutablePath,  
“-l”,  
licenseStr  
]

Do you have any ideas on how to fix this, or any other workaround? We have a project using totalSegmentator tisse\_types extra weights and I am under some time pressure, so any solution would be greatly appreciated

---

<div class="post-metadata">

### Author: ![evaherbst](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/evaherbst/32/65595_2.png) [@evaherbst](https://discourse.slicer.org/u/evaherbst)
#### Post date: [April 23, 2024, 10:56am UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/7 "2024-04-23T10:56:58Z")

</div>

I also tried uninstalling all Slicer versions, removing pip cache, removing .totalsegmentator folder in my user data, and re-installing from scratch. I am still running into the same issue

UPDATE:  
I see in the .totalsegmentator folder in Users/myusername/.totalsegmentator, the .config file has been created by the Slicer TotalSegmentator installation and my license is listed in this .config file.

So, the license setting seems to work, Slicer is just not accessing it whenever it gets reopened.

---

<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: [April 23, 2024, 12:47pm UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/8 "2024-04-23T12:47:23Z")

</div>

> [@evaherbst](#):
>
> So, the license setting seems to work, Slicer is just not accessing it whenever it gets reopened.

The module works the same way as most other software that requires a registration key: you need to provide a license key file to register the software once, then you never need to enter that key again. Do you find it confusing that the license key selector is not hidden after entering the license? Or it would be more intuitive if the license number was entered in a popup window?

---

<div class="post-metadata">

### Author: ![evaherbst](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/evaherbst/32/65595_2.png) [@evaherbst](https://discourse.slicer.org/u/evaherbst)
#### Post date: [April 23, 2024, 1:09pm UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/9 "2024-04-23T13:09:41Z")

</div>

Hi Andras,

Apologies for my confusion.  
In a previous version, the license number was saved in the TotalSegmentator license number box.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/b/cb4f97d6ad39a4e5ecc46fd002823cd45c565893.png)

The fact that this was now empty made me think the license was not saved when indeed it was.

But you are right, internally the key was saved, I just tried running it and it works.  
I was just confused that the box remained empty.

Thanks,  
Eva

---

<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: [April 23, 2024, 1:42pm UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/10 "2024-04-23T13:42:03Z")

</div>

OK. To make the behavior more clear, I’ve now moved the license key inputbox into a popup window that is displayed when the button is clicked.

---

<div class="post-metadata">

### Author: ![evaherbst](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/evaherbst/32/65595_2.png) [@evaherbst](https://discourse.slicer.org/u/evaherbst)
#### Post date: [April 24, 2024, 9:08am UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/11 "2024-04-24T09:08:17Z")

</div>

Thanks @lassoan

I tested this and the popup works.  
However, it was not the location of entering the license that was confusing, but the fact that even when the license was saved internally, when you reopen Slicer, the license field is empty.  
So it looks like it has not been saved (even though for the purposes for running the application it has). You can see below what it looks like (even when the license is saved and the extra tasks run)\>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/b/cb4f97d6ad39a4e5ecc46fd002823cd45c565893.png)

It is not a big issue but it did make me think the license wasn’t being saved.

Thanks,  
Eva

---

<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: [April 24, 2024, 12:42pm UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/12 "2024-04-24T12:42:03Z")

</div>

It seems that you have not updated to the latest TotalSegmentator extension version yet. There is no longer a license number field that is always displayed.

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

To get the latest version, install the latest Slicer Preview Release or latest Slicer Stable Release and install/update TotalSegmentator extension.

---

<div class="post-metadata">

### Author: ![evaherbst](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/evaherbst/32/65595_2.png) [@evaherbst](https://discourse.slicer.org/u/evaherbst)
#### Post date: [May 2, 2024, 8:07am UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/13 "2024-05-02T08:07:02Z")

</div>

Ok, thank you Andres!

---

<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:30am UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/14 "2025-09-29T09:30:59Z")

</div>

When I use the license, an error occurs. Could you please tell me how to solve it? Also, if the license is successfully activated, will the license option still show as empty, or will it display the license information?

_(image removed, as it might have contained license number)_

---

<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:41pm UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/15 "2025-09-29T17:41:45Z")

</div>

Thanks for reporting. I’ve fixed the issue (it was introduced by a recent change that made the module translatable to different languages). If you update the extension tomorrow then it should not throw any errors when you are setting the license key.

---

<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 30, 2025, 1:16am UTC](https://discourse.slicer.org/t/totalsegmentator-extra-task-license-not-saved-in-slicer-6-2/35622/16 "2025-09-30T01:16:42Z")

</div>

ok, thank you a lot, I will update the extension.
