NIRALUser / auto_EACSF

A tool for brain extra-axial cerebrospinal fluid extraction from MRI
https://www.nitrc.org/projects/auto_eacsf/
Apache License 2.0
4 stars 2 forks source link

“FileName must be specified” issue #15

Open foxet opened 1 year ago

foxet commented 1 year ago

Thankyou for your sofware ,but some issue happen when it was running The software was ran on MAC apple m2

图片 图片 图片 图片 图片 图片

the error message as follow:

图片

libc++abi: terminating due to uncaught exception of type itk::ImageFileReaderException: /Users/juan/UNC/src/auto_EACSF-build/ITKv4-install/include/ITK-4.13/itkImageFileReader.hxx:87: FileName must be specified

ITK exception caught in main

itk::ImageFileReaderException (0x600000f38470) Location: "unknown" File: /Users/juan/UNC/src/auto_EACSF-build/ITKv4-install/include/ITK-4.13/itkImageFileReader.hxx Line: 143 Description: Could not create IO object for reading file /Users/foxet/Documents/zhanghong/output/RigidRegistration/P001_stx.nrrd The file doesn't exist. Filename = /Users/foxet/Documents/zhanghong/output/RigidRegistration/P001_stx.nrrd

Error: ipGetArgument: argument value of option "-majorityVoting" is missing!

libc++abi: terminating due to uncaught exception of type itk::ImageFileReaderException: /Users/juan/UNC/src/auto_EACSF-build/ITKv4-install/include/ITK-4.13/itkImageFileReader.hxx:143: Could not create IO object for reading file /Users/foxet/Documents/zhanghong/output/SkullStripping/P001_stx_weightedMajority.nii.gz The file doesn't exist. Filename = /Users/foxet/Documents/zhanghong/output/SkullStripping/P001_stx_weightedMajority.nii.gz

libc++abi: terminating due to uncaught exception of type itk::ImageFileReaderException: /Users/juan/UNC/src/auto_EACSF-build/ITKv4-install/include/ITK-4.13/itkImageFileReader.hxx:143: Could not create IO object for reading file /Users/foxet/Documents/zhanghong/output/SkullStripping/P001_stx_weightedMajority.nii.gz The file doesn't exist. Filename = /Users/foxet/Documents/zhanghong/output/SkullStripping/P001_stx_weightedMajority.nii.gz

libc++abi: terminating due to uncaught exception of type itk::ImageFileReaderException: /Users/juan/UNC/src/auto_EACSF-build/ITKv4-install/include/ITK-4.13/itkImageFileReader.hxx:143: Could not create IO object for reading file /Users/foxet/Documents/zhanghong/output/SkullStripping/P001_stx_weightedMajority.nii.gz The file doesn't exist. Filename = /Users/foxet/Documents/zhanghong/output/SkullStripping/P001_stx_weightedMajority.nii.gz

libc++abi: terminating due to uncaught exception of type itk::ImageFileReaderException: /Users/juan/UNC/src/auto_EACSF-build/ITKv4-install/include/ITK-4.13/itkImageFileReader.hxx:143: Could not create IO object for reading file /Users/foxet/Documents/zhanghong/output/SkullStripping/P001_stx_stripped.nrrd The file doesn't exist. Filename = /Users/foxet/Documents/zhanghong/output/SkullStripping/P001_stx_stripped.nrrd

Exception caught in ANTS: /Users/juan/UNC/src/auto_EACSF-build/ITKv4-install/include/ITK-4.13/itkImageFileReader.hxx:143: Could not create IO object for reading file /Users/foxet/Documents/zhanghong/output/SkullStripping/P001_stx_stripped.nrrd The file doesn't exist. Filename = /Users/foxet/Documents/zhanghong/output/SkullStripping/P001_stx_stripped.nrrd

Run without any arguments to see command line options Exception: Invalid segmentation parameter values

Traceback (most recent call last): File "/Users/foxet/Documents/zhanghong/output/PythonScripts/main_script.py", line 288, in main(args) File "/Users/foxet/Documents/zhanghong/output/PythonScripts/main_script.py", line 121, in main BRAIN_MASK_base = os.path.splitext(os.path.basename(BRAIN_MASK))[0] File "/Users/foxet/fsl/lib/python3.10/posixpath.py", line 142, in basename p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType

styner commented 1 year ago

The error shows that the output of the registration is missing, i.e. the registration failed. And then everything further down the workflow fails because of that missing registration output.

If you look at the output files/folders, do you have a file called P001_stx.nrrd or P001_stx.nhdr?

You could try to first convert your file to .nrrd and see whether that helps.

Best Martin

foxet commented 1 year ago

The error shows that the output of the registration is missing, i.e. the registration failed. And then everything further down the workflow fails because of that missing registration output.

If you look at the output files/folders, do you have a file called P001_stx.nrrd or P001_stx.nhdr?

You could try to first convert your file to .nrrd and see whether that helps.

Best Martin

Hi Martin Thanks for ur response.

I tried nrrd and nii, both failed and there is no P001_stx.nrrd or P001_stx.nhdr in the output directory. could u please check my file? P001.nii.zip

best wish Lin