Operating system: windows 10
Slicer version: 5.2.1
Expected behavior:
Actual behavior:
Hi, when i try to use totalsegmentator i`ve thi error
“Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\NA-MIC\Slicer 5.2.1\bin\Python\slicer\util.py”, line 2961, in tryWithErrorDisplay
yield
File “C:/Users/Administrator/AppData/Local/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 264, in onApplyButton
self.logic.process(self.ui.inputVolumeSelector.currentNode(), self.ui.outputSegmentationSelector.currentNode(),
File “C:/Users/Administrator/AppData/Local/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 749, in process
self.logProcessOutput(proc)
File “C:/Users/Administrator/AppData/Local/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/TotalSegmentator/lib/Slicer-5.2/qt-scripted-modules/TotalSegmentator.py”, line 656, in logProcessOutput
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command ‘[‘C:/Users/Administrator/AppData/Local/NA-MIC/Slicer 5.2.1/bin/…/bin\PythonSlicer.EXE’, ‘C:\Users\Administrator\AppData\Local\NA-MIC\Slicer 5.2.1\lib\Python\Scripts\TotalSegmentator’, ‘-i’, ‘F:/User TMP/Slicer/__SlicerTemp__2023-02-08_12+06+56.965/total-segmentator-input.nii’, ‘-o’, ‘F:/User TMP/Slicer/__SlicerTemp__2023-02-08_12+06+56.965/segmentation’, ‘–ml’, ‘–task’, ‘total’, ‘–fast’]’ returned non-zero exit status 1.
And This Processing started
Writing input file to F:/User TMP/Slicer/__SlicerTemp__2023-02-08_12+22+06.226/total-segmentator-input.nii
Creating segmentations with TotalSegmentator AI…
Total Segmentator arguments: [‘-i’, ‘F:/User TMP/Slicer/__SlicerTemp__2023-02-08_12+22+06.226/total-segmentator-input.nii’, ‘-o’, 'F:/User TMP/Slicer/SlicerTemp__2023-02-08_12+22+06.226/segmentation’, ‘–ml’, ‘–task’, ‘total’, ‘–fast’]
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\NA-MIC\Slicer 5.2.1\lib\Python\Scripts\TotalSegmentator”, line 241, in
main()
File “C:\Users\Administrator\AppData\Local\NA-MIC\Slicer 5.2.1\lib\Python\Scripts\TotalSegmentator”, line 87, in main
parser.add_argument(‘–version’, action=‘version’, version=require(“TotalSegmentator”)[0].version)
File "C:\Users\Administrator\AppData\Local\NA-MIC\Slicer 5.2.1\lib\Python\Lib\site-packages\pkg_resources_init.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
File "C:\Users\Administrator\AppData\Local\NA-MIC\Slicer 5.2.1\lib\Python\Lib\site-packages\pkg_resources_init.py”, line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘scikit-learn’ distribution was not found and is required by batchgenerators
"
Thanks for Help
It seems that wrong version of Python packages are found in your Slicer’s Python environment. Have you tried to install some Python packages manually?
I would recommend to uninstall Slicer, remove the complete C:\Users\Administrator\AppData\Local\NA-MIC\Slicer 5.2.1
folder and reinstall Slicer and TotalSegmentator extension from scratch.
3.11.2
ok i try Thanks