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
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
For non-commercial license you can go there Streamlit
For a commercial license contact jakob.wasserthal@usb.ch)
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
Have you solved it? I encountered the same problem and the license setting failed.
Original message
请问您解决了吗,我遇到了相同问题,license设置失败
See more details here: TotalSegmentator Extra Task License Not Saved in Slicer 6.2 - #14 by bulala
@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.
The problem has not been solved until now.
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.
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.
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?
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, but you may need to enable some more for model download.
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.
Name: TotalSegmentatorVersion: 2.10.0
Summary: Robust segmentation of 104 classes in CT images.
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/ 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 and Chrome Platform Status . 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
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.
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!