Thank you again, rbumm, you are so kind.
I did what you recommended, and as expected, ‘lungmask’ couldn’t be isntalled automatically.
I manual installed in the Python Interactor and pressed enter.
slicer.util.pip_install(“git+https://github.com/JoHof/lungmask”)
these are follow troubles.
Python 3.9.10 (main, Jul 8 2022, 02:32:50) [MSC v.1930 64 bit (AMD64)] on win32
>>> slicer.util.pip_install("git+https://github.com/JoHof/lungmask")
Collecting git+https://github.com/JoHof/lungmask
Cloning https://github.com/JoHof/lungmask to c:\users\wangjian\appdata\local\temp\pip-req-build-8gmwibu8
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))) - skipping
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Users\WangJian\Slicer 5.0.3\bin\Python\slicer\util.py", line 3527, in pip_install
_executePythonModule('pip', args)
File "C:\Users\WangJian\Slicer 5.0.3\bin\Python\slicer\util.py", line 3490, in _executePythonModule
logProcessOutput(proc)
File "C:\Users\WangJian\Slicer 5.0.3\bin\Python\slicer\util.py", line 3459, in logProcessOutput
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['C:/Users/WangJian/Slicer 5.0.3/bin/../bin\\PythonSlicer.EXE', '-m', 'pip', 'install', 'git+https://github.com/JoHof/lungmask']' returned non-zero exit status 1.
>>>
StartSegmentation completed in 1.63 seconds
Saving markups in temp directory ...
Torchlogic module not found
Querying light-the-torch for torch wheel...
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))': /simple/light-the-torch/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))': /simple/light-the-torch/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))': /simple/light-the-torch/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))': /simple/light-the-torch/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))': /simple/light-the-torch/
Could not fetch URL https://pypi.org/simple/light-the-torch/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/light-the-torch/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))) - skipping
ERROR: Could not find a version that satisfies the requirement light-the-torch<0.4 (from versions: none)
ERROR: No matching distribution found for light-the-torch<0.4
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))) - skipping
Failed to compute results: Command '['C:/Users/WangJian/Slicer 5.0.3/bin/../bin\\PythonSlicer.EXE', '-m', 'pip', 'install', 'light-the-torch<0.4']' returned non-zero exit status 1.
Traceback (most recent call last):
File "C:/Users/WangJian/Slicer 5.0.3/NA-MIC/Extensions-30893/LungCTAnalyzer/lib/Slicer-5.0/qt-scripted-modules/LungCTSegmenter.py", line 605, in runProcessing
self.logic.applySegmentation()
File "C:/Users/WangJian/Slicer 5.0.3/NA-MIC/Extensions-30893/LungCTAnalyzer/lib/Slicer-5.0/qt-scripted-modules/LungCTSegmenter.py", line 1644, in applySegmentation
torch = torchLogic.installTorch(askConfirmation=True)
File "C:/Users/WangJian/Slicer 5.0.3/NA-MIC/Extensions-30893/PyTorch/lib/Slicer-5.0/qt-scripted-modules/PyTorchUtils.py", line 93, in installTorch
f'{self.wheelURL}'
File "C:/Users/WangJian/Slicer 5.0.3/NA-MIC/Extensions-30893/PyTorch/lib/Slicer-5.0/qt-scripted-modules/PyTorchUtils.py", line 63, in wheelURL
self._wheel = self.getTorchUrl()
File "C:/Users/WangJian/Slicer 5.0.3/NA-MIC/Extensions-30893/PyTorch/lib/Slicer-5.0/qt-scripted-modules/PyTorchUtils.py", line 112, in getTorchUrl
slicer.util.pip_install('light-the-torch<0.4')
File "C:\Users\WangJian\Slicer 5.0.3\bin\Python\slicer\util.py", line 3527, in pip_install
_executePythonModule('pip', args)
File "C:\Users\WangJian\Slicer 5.0.3\bin\Python\slicer\util.py", line 3490, in _executePythonModule
logProcessOutput(proc)
File "C:\Users\WangJian\Slicer 5.0.3\bin\Python\slicer\util.py", line 3459, in logProcessOutput
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['C:/Users/WangJian/Slicer 5.0.3/bin/../bin\\PythonSlicer.EXE', '-m', 'pip', 'install', 'light-the-torch<0.4']' returned non-zero exit status 1.
>>> slicer.util.pip_install("git+https://github.com/JoHof/lungmask")
Collecting git+https://github.com/JoHof/lungmask
Cloning https://github.com/JoHof/lungmask to c:\users\wangjian\appdata\local\temp\pip-req-build-qgkg9ax7
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))) - skipping
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Users\WangJian\Slicer 5.0.3\bin\Python\slicer\util.py", line 3527, in pip_install
_executePythonModule('pip', args)
File "C:\Users\WangJian\Slicer 5.0.3\bin\Python\slicer\util.py", line 3490, in _executePythonModule
logProcessOutput(proc)
File "C:\Users\WangJian\Slicer 5.0.3\bin\Python\slicer\util.py", line 3459, in logProcessOutput
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['C:/Users/WangJian/Slicer 5.0.3/bin/../bin\\PythonSlicer.EXE', '-m', 'pip', 'install', 'git+https://github.com/JoHof/lungmask']' returned non-zero exit status 1.
>>>