Hi all,
I am running Python using Nipype and encountering an error that states 'spm_existfile' is not compiled for my platform. I have searched for similar issues online in the past; however, none of the solutions have worked for me.
I am using the 2021 M1 Apple Silicon chip, and the version of Matlab is R2023_b. I downloaded the most recent version of SPM12 for macOS. I ran a few lines of code:
...
seg = spm.Segment()
seg.inputs.data = 'Anat_PATH'
seg.run()
...
The error I got was:
Warning: spm_existfile is not compiled for your platform.
> In spm_existfile (line 23)
In spm_vol>spm_vol_hdr (line 79)
In spm_vol (line 61)
In spm_preproc (line 44)
In spm_run_preproc (line 20)
In cfg_run_cm (line 29)
In cfg_util>local_runcj (line 1717)
In cfg_util (line 972)
In spm_jobman>fill_run_job (line 469)
In spm_jobman (line 247)
In pyscript_segment (line 27)
29-Nov-2023 09:48:48 - Failed 'Old Segment'
Error using spm_slice_vol
spm_slice_vol.c not compiled - see Makefile
Sincerely,
Moon Jeong
|