Dears,
wish you are doing fine and happy new year to all.
I have added the module “dental segmentator” to 3D Slicer 5.7 and when trying to used it the program ask to download the needed extension “NNUNet and PyTorch” which are added. But, when trying to use the dental segmentator still asking for the PyTorch!!!
I tried to solve this through “uninstalling the whole program and re-download it with the module and needed extensions” but still the same problem does exist (as shown in the screenshot here"
Please remove this Slicer version and download and install the latest Slicer Preview Release, install PyTorch extension, restart Slicer, and in PyTorch Utils module set Torch version requirement to >=2, then click Install PyTorch. If you encounter any problems, copy here the entire application log (menu: Help / Report a bug).
Dear Dr. Iassoan, thank you so much for yoru informative reply. Actually, I have tried as you recommend, but, unfortunatelly, the problem still exist. Please, find here the entire application log:
[DEBUG][Qt] 20.01.2025 19:15:22 (unknown:0) - Session start time …: 20250120_191522
[DEBUG][Qt] 20.01.2025 19:15:29 (unknown:0) - Switch to module: “Welcome”
[DEBUG][Qt] 20.01.2025 19:15:52 (unknown:0) - Switch to module: “PyTorchUtils”
[INFO][Python] 20.01.2025 19:16:14 [Python] (C:\Users\HanFei\AppData\Local\slicer.org\Slicer 5.7.0-2025-01-18\bin\Python\slicer\util.py:3057) - PyTorch will be downloaded and installed using light-the-torch (ltt install torch>=2 torchvision). The process might take some minutes.
[INFO][Python] 20.01.2025 19:16:17 [Python] (C:/Users/HanFei/AppData/Local/slicer.org/Slicer 5.7.0-2025-01-18/slicer.org/Extensions-33194/PyTorch/lib/Slicer-5.7/qt-scripted-modules/PyTorchUtils.py:216) - Install PyTorch using light-the-torch with arguments: [‘install’, ‘torch>=2’, ‘torchvision’]
[INFO][Stream] 20.01.2025 19:16:25 (unknown:0) - 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/
[INFO][Stream] 20.01.2025 19:16:25 (unknown:0) - 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/
[INFO][Stream] 20.01.2025 19:16:26 (unknown:0) - 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/
[INFO][Stream] 20.01.2025 19:16:28 (unknown:0) - 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/
[INFO][Stream] 20.01.2025 19:16:32 (unknown:0) - 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/
[INFO][Stream] 20.01.2025 19:16:32 (unknown:0) - 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
[INFO][Stream] 20.01.2025 19:16:33 (unknown:0) - ERROR: Could not find a version that satisfies the requirement light-the-torch>=0.5 (from versions: none)
[INFO][Stream] 20.01.2025 19:16:33 (unknown:0) - ERROR: No matching distribution found for light-the-torch>=0.5
[ERROR][Python] 20.01.2025 19:16:33 [Python] (C:\Users\HanFei\AppData\Local\slicer.org\Slicer 5.7.0-2025-01-18\bin\Python\slicer\util.py:3057) - Failed to install PyTorch. Some PyTorch files may be in use or corrupted. Please restart the application, uninstall PyTorch, and try installing again.
Command ‘[‘C:/Users/HanFei/AppData/Local/slicer.org/Slicer 5.7.0-2025-01-18/bin/…/bin\PythonSlicer.EXE’, ‘-m’, ‘pip’, ‘install’, ‘light-the-torch>=0.5’]’ returned non-zero exit status 1.