Operation system: Windows 10
Slcier version: 4.11 20210226
I tried to run the Lung CT segmenter module on a dog CT series.
Preview was ok but after applying I got this error message:
Saving fiducials in root directory …
Saving fiducials in volume directory …
Failed to compute results: expected str, bytes or os.PathLike object, not NoneType
Traceback (most recent call last):
File “C:/Users/petnehazyors/AppData/Local/NA-MIC/Slicer 4.11.20210226/NA-MIC/Extensions-29738/LungCTAnalyzer/lib/Slicer-4.11/qt-scripted-modules/LungCTSegmenter.py”, line 397, in onApplyButton
self.saveFiducialsGlobalAndLocal()
File “C:/Users/petnehazyors/AppData/Local/NA-MIC/Slicer 4.11.20210226/NA-MIC/Extensions-29738/LungCTAnalyzer/lib/Slicer-4.11/qt-scripted-modules/LungCTSegmenter.py”, line 465, in saveFiducialsGlobalAndLocal
baseFolder, tail = os.path.split(inputFilename)
File “C:/Users/petnehazyors/AppData/Local/NA-MIC/Slicer 4.11.20210226/bin/…/lib/Python/Lib\ntpath.py”, line 205, in split
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
The error message suggests that maybe empty path was given? I guess not, but double-checking (looking at the log you were kind to paste, it seems it got past the first round of saving). Is this module available for the latest Preview version (almost 5.0 so time to try to switch)? If so, does the error occur in that as well? Thanks!
I just tested the LungCTSegmenter and do not get this exception when loading a CT dataset from my local harddrive.
In your case, inputFilename is obviosly empty for some reason and so the exception is thrown.
Will try to fix this, but:
How did you load the CT data?
What version does LungCTAnalyzer show on your system ?
How did you try to download it?
I have no problem installing the LungCTAnalyzer extension from the Extensions Manager in 4.11.
Could you provide more details?