HELP for error Dependency source available, but is missing required output.

116 views
Skip to first unread message

philip Joadavi

unread,
Dec 18, 2021, 2:07:42 PM12/18/21
to SwE-Toolbox Support
Hi all,

I'm going to use SWE toolbox but I haven't been successful in running the model and the results.
I have this error:
Dependency source available, but is missing required output.
Reference to non-existent field 'files'.
In item SwE File:
Dependency 1: Specify Model: SwE.mat file (out.files)


I have the SPM12 , 7771, and SwE 2.2.2 .

I followed the post by Gina about this error, but I understood from Github that this problem is solved in the new version (2.2.2). 
I also tried to use 
addpath ('.../spm12/compat'), but still I get the same error.

can someone help me with that?

thanks a lot!!
Philip

philip Joadavi

unread,
Dec 18, 2021, 4:37:40 PM12/18/21
to SwE-Toolbox Support
regarding my question, I solved it by removing the dependency and instead adding the swe.mat file directory. 

but now I'm getting another errors :



18-Dec-2021 22:26:47 - Running 'Specify Model'
Mapping files                           :                        ...done
Design configuration                    :                        ...done
Saving SwE configuration                :               ...SwE.mat saved
Design reporting                        :                        ...done
Done
18-Dec-2021 22:26:51 - Done    'Specify Model'
18-Dec-2021 22:26:51 - Running 'Run Model'
Initialising parameters                 :                        ...done
Output images                           :                 ...initialised
Original statistics: Chunk   1/13       :                  ...processing18-Dec-2021 22:26:55 - Failed  'Run Model'
Error using mat2file (line 16)
mat2file.c not compiled - see Makefile
In file "/Users/.../spm12/@file_array/private/mat2file.m" (v7147), function "mat2file" at line 16.
In file "/Users/.../spm12/@file_array/subsasgn.m" (v7147), function "subfun" at line 164.
In file "/Users/.../spm12/@file_array/subsasgn.m" (v7147), function "subsasgn" at line 85.
In file "/Users/.../spm12/@nifti/subsasgn.m" (v7744), function "fun" at line 74.
In file "/Users/.../spm12/@nifti/subsasgn.m" (v7744), function "subsasgn" at line 20.
In file "/Users/.../spm12/spm_data_write.m" (v5916), function "spm_data_write" at line 37.
In file "/Users/.../spm12/toolbox/SwE-toolbox-2.2.2/swe_data_write.m" (???), function "swe_data_write" at line 43.
In file "/Users/.../spm12/toolbox/SwE-toolbox-2.2.2/swe_cp_WB.m" (???), function "swe_cp_WB" at line 1096.
In file "/Users/.../spm12/toolbox/SwE-toolbox-2.2.2/swe_cp.m" (???), function "swe_cp" at line 75.
In file "/Users/.../spm12/toolbox/SwE-toolbox-2.2.2/swe_run_rmodel.m" (???), function "swe_run_rmodel" at line 34.

18-Dec-2021 22:26:55 - Running 'Results Display'
18-Dec-2021 22:26:55 - Failed  'Results Display'
Error using swe_getSPM (line 254)
This model has not been estimated.
In file "/Users/.../spm12/toolbox/SwE-toolbox-2.2.2/swe_getSPM.m" (???), function "swe_getSPM" at line 254.
In file "/Users/.../spm12/toolbox/SwE-toolbox-2.2.2/swe_results_ui.m" (???), function "swe_results_ui" at line 0.
In file "/Users/.../spm12/toolbox/SwE-toolbox-2.2.2/swe_run_results.m" (???), function "swe_run_results" at line 22.


has anyone experienced these errors?

Philip

philip Joadavi

unread,
Dec 19, 2021, 10:24:08 AM12/19/21
to SwE-Toolbox Support
Just in case someone else got to this issue, I solved it by reinstalling the spm12.  
Reply all
Reply to author
Forward
0 new messages