help > Set up error (Any idea on how to fix this?)
Showing 1-7 of 7 posts
Display:
Results per page:
Oct 7, 2015  03:10 PM | Fran
Set up error (Any idea on how to fix this?)
Hi,
Anybody has a clue of what is going grong and how to fix it?



ERROR DESCRIPTION:

Error using spm_vol>spm_vol_hdr (line 80)
File "C:\Program Files\spm8\apriori\brainmask.nii" does not exist.
Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in conn_process (line 475)
Vmask=spm_vol(filename);
Error in conn_process (line 12)
case 'setup', disp(['CONN: RUNNING SETUP STEP']); conn_process([0:4,4.5,5]);
Error in conn (line 2735)
else conn_process('setup');
Error in conn_menumanager (line 119)
feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end});
CONN v.15.f
SPM12 + DEM FieldMap MEEGtools conn
Matlab v.2015b
storage: 177.0Gb available
Oct 7, 2015  04:10 PM | Pravesh Parekh - University of Oslo
RE: Set up error (Any idea on how to fix this?)
Hi Fran,

I would assume that Conn is trying to find "brainmask.nii" file in the specified location but can't find it.

I checked my installation of spm12 and I see that the file is located in the following location: \spm12\toolbox\brainmask.nii

A few suggestions on what could be going wrong:

1. Your MATLAB path still has entries from older spm (spm8)
2. SPM 12 is not on path

I would suggest checking your MATLAB directory setup.


Regards

Pravesh Parekh

Originally posted by Fran :
Hi,
Anybody has a clue of what is going grong and how to fix it?



ERROR DESCRIPTION:

Error using spm_vol>spm_vol_hdr (line 80)
File "C:\Program Files\spm8\apriori\brainmask.nii" does not exist.
Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in conn_process (line 475)
Vmask=spm_vol(filename);
Error in conn_process (line 12)
case 'setup', disp(['CONN: RUNNING SETUP STEP']); conn_process([0:4,4.5,5]);
Error in conn (line 2735)
else conn_process('setup');
Error in conn_menumanager (line 119)
feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end});
CONN v.15.f
SPM12 + DEM FieldMap MEEGtools conn
Matlab v.2015b
storage: 177.0Gb available
Oct 8, 2015  04:10 PM | Fran
RE: Set up error (Any idea on how to fix this?)
Thank you so much for that Pravesh,
I actually installed spm8 and everything is running smoothly now.

Regards
Francesco
Oct 8, 2015  04:10 PM | Alfonso Nieto-Castanon - Boston University
RE: Set up error (Any idea on how to fix this?)
Hi Fran,

The issue was probably that the original conn project was created in SPM8 and included a reference to the default brainmask file in SPM8. If in the future you prefer to continue working with this project after switching to SPM12 simply go to Setup.Options after loading your conn project, select the 'explicit masking' option there and re-select the brainmask.nii file (now located within the spm12 folder in the directory that Pravesh mentioned).

Hope this helps
Alfonso
Originally posted by Fran :
Thank you so much for that Pravesh,
I actually installed spm8 and everything is running smoothly now.

Regards
Francesco
Oct 8, 2015  05:10 PM | Fran
RE: Set up error (Any idea on how to fix this?)
Thank you for that Alfonso...
Dec 18, 2019  12:12 PM | lars
RE: Set up error (Any idea on how to fix this?)
Hi All,

Ive got a similar problem as this post, however, it seems that my spm is looking for a file i dont have.
I am trying to run a preprocessing script from somebody else in my pc and it seems it is looking for a file-path that doesnt exist on my pc. (was looking for a script that does all normal fmri preprocessing in 1 go) Does anybody have experience with this problem? Thanks in advance!

ERROR: 

18-Dec-2019 12:24:15 - Failed 'Realign & Unwarp'
Error using spm_vol>spm_vol_hdr (line 80)
File "E:\MRI\BECi_Study\Data\Subject_02\Sess1\fUniS-0002-00002-000002-01.img" does not exist.
In file "C:\matlab\spm12\spm_vol.m" (v5958), function "spm_vol_hdr" at line 80.
In file "C:\matlab\spm12\spm_vol.m" (v5958), function "spm_vol" at line 61.
In file "C:\matlab\spm12\spm_realign.m" (v7141), function "spm_realign" at line 121.
In file "C:\matlab\spm12\config\spm_run_realignunwarp.m" (v6554), function "spm_run_realignunwarp" at line 78.

The following modules did not run:
Failed: Realign & Unwarp
Error using MATLABbatch system
Job execution failed. The full log of this run can be found in MATLAB command window, starting with the lines (look for the line
showing the exact #job as displayed in this error message)
Dec 18, 2019  12:12 PM | Pravesh Parekh - University of Oslo
RE: Set up error (Any idea on how to fix this?)
Hello,

SPM is trying to read the file "fUniS-0002-00002-000002-01.img" in the location indicated but looks like the file does not exist in that location. You could double check the path to make sure that this is indeed where the file is...perhaps you now have file in .nii format and the script is looking for an .img file?


Hope this helps

Best
Pravesh

Originally posted by lars:
Hi All,

Ive got a similar problem as this post, however, it seems that my spm is looking for a file i dont have.
I am trying to run a preprocessing script from somebody else in my pc and it seems it is looking for a file-path that doesnt exist on my pc. (was looking for a script that does all normal fmri preprocessing in 1 go) Does anybody have experience with this problem? Thanks in advance!

ERROR: 

18-Dec-2019 12:24:15 - Failed 'Realign & Unwarp'
Error using spm_vol>spm_vol_hdr (line 80)
File "E:\MRI\BECi_Study\Data\Subject_02\Sess1\fUniS-0002-00002-000002-01.img" does not exist.
In file "C:\matlab\spm12\spm_vol.m" (v5958), function "spm_vol_hdr" at line 80.
In file "C:\matlab\spm12\spm_vol.m" (v5958), function "spm_vol" at line 61.
In file "C:\matlab\spm12\spm_realign.m" (v7141), function "spm_realign" at line 121.
In file "C:\matlab\spm12\config\spm_run_realignunwarp.m" (v6554), function "spm_run_realignunwarp" at line 78.

The following modules did not run:
Failed: Realign & Unwarp
Error using MATLABbatch system
Job execution failed. The full log of this run can be found in MATLAB command window, starting with the lines (look for the line
showing the exact #job as displayed in this error message)