Hi everyone,
I am running in a funny (let’s say funny) error when trying to specify the input to a nipype.interface.spm.preprocess.Coregister object. When I try to specify the source trait I got the following error
Each element of the 'source' trait of a CoregisterInputSpec instance must be a pathlike object or string representing an existing file, but a value of '/path/to/my/file/img.nii.gz' <class 'str'> was specified.
Now, the point is that the file specified exists (as attested by a os.isfile returning True) and the path is provided as a string (as attested by type). Using the exact same string as input to a nilearn.image.load_img lead to the successful creation of a nibabel.nifti1.Nifti1Image. Note that to be on the safe side I have upgraded nipype to the last version available. For the sake of my life I cannot understand what is going wrong. Have you ever stumbled upon this ? Do you have any idea on how to make this go away ?