TotalSegmenter looks for a non-existant archve file

When I try to run TotalSegmenter with the sample data ( in Slicer 5.3.0), I get this message

Traceback (most recent call last):
File “C:\Users\Gene\AppData\Local\NA-MIC\Slicer 5.3.0-2023-01-27\bin\Python\slicer\util.py”, line 2973, in tryWithErrorDisplay
yield
File “C:/Users/Gene/AppData/Local/NA-MIC/Slicer 5.3.0-2023-01-27/NA-MIC/Extensions-31549/TotalSegmentator/lib/Slicer-5.3/qt-scripted-modules/TotalSegmentator.py”, line 255, in onApplyButton
self.logic.setupPythonRequirements()
File “C:/Users/Gene/AppData/Local/NA-MIC/Slicer 5.3.0-2023-01-27/NA-MIC/Extensions-31549/TotalSegmentator/lib/Slicer-5.3/qt-scripted-modules/TotalSegmentator.py”, line 624, in setupPythonRequirements
slicer.util.pip_install(self.totalSegmentatorPythonPackageDownloadUrl)
File “C:\Users\Gene\AppData\Local\NA-MIC\Slicer 5.3.0-2023-01-27\bin\Python\slicer\util.py”, line 3586, in pip_install
_executePythonModule(‘pip’, args)
File “C:\Users\Gene\AppData\Local\NA-MIC\Slicer 5.3.0-2023-01-27\bin\Python\slicer\util.py”, line 3548, in _executePythonModule
logProcessOutput(proc)
File “C:\Users\Gene\AppData\Local\NA-MIC\Slicer 5.3.0-2023-01-27\bin\Python\slicer\util.py”, line 3517, in logProcessOutput
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '[‘C:/Users/Gene/AppData/Local/NA-MIC/Slicer 5.3.0-2023-01-27/bin/…/bin\PythonSlicer.EXE’, ‘-m’, ‘pip’, ‘install’, 'https://github.com/wasserth/TotalSegmentator/archive/ecf84f9e59b84dddb447e2b13542f58c29ee4c6a.zip’]’ returned non-zero exit status 1.

I found that the archive does not exist online. How can I fix this?

Thank you!

Gene Risi

If the https://github.com/wasserth/TotalSegmentator/archive/ecf84f9e59b84dddb447e2b13542f58c29ee4c6a.zip is not accessible for you then it means that you have a network connectivity problem.

If you want to get more details on why the installation fails, exit Slicer and launch this in a Windows Command Prompt:

"C:\Users\Gene\AppData\Local\NA-MIC\Slicer 5.3.0-2023-01-27\bin\PythonSlicer.EXE" -m pip install https://github.com/wasserth/TotalSegmentator/archive/ecf84f9e59b84dddb447e2b13542f58c29ee4c6a.zip

1 Like

Thank you, Andras! That worked and now things are running :grinning:

Where can we get the information about available GitHub archive files for this and other projects?

Github accepts any branch name or commit hash as .zip file name.

Sry, but where did you find the hash.zip? If I enter https://github.com/wasserth/TotalSegmentator/archive/
it does not show what zip files are available. Should we just use a commit hash?

You can find commit hashes in the commit history.

1 Like