Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lingering hard-coded paths after #3 #36

Open
gdevenyi opened this issue Feb 18, 2025 · 0 comments · May be fixed by #37
Open

Lingering hard-coded paths after #3 #36

gdevenyi opened this issue Feb 18, 2025 · 0 comments · May be fixed by #37

Comments

@gdevenyi
Copy link

I have CAT12 installed at
/opt/quarantine/software/CAT12/12.9/install/cat12

And I prepend to MATLABPATH:
/opt/quarantine/software/CAT12/12.9/install/

Which contains spm_my_defaults.m

global defaults

defaults.tbx.dir{end+1} = fullfile(fileparts(mfilename('fullpath'))) ;

This makes SPM properly find CAT12's toolbox location

However, when I open SPM and try to launch the toolbox:


SPM12: spm_cat12 (vCAT12.9)                        11:03:16 - 18/02/2025
========================================================================
Error using imread>get_full_filename (line 579)
Unable to find file "/opt/quarantine/software/SPM12/r7771/install/spm12/toolbox/cat12/doc/images/CAT_Poster.jpg".

Error in imread (line 372)
        fullname = get_full_filename(filename);

Error in spm_cat12 (line 298)
  h = imshow(imread(Pposter));

Error in cat12 (line 62)
  spm_cat12;

It looks like the changes done to address #3 (I can't find a PR or commit to refer to specifically) did not resolve all path issues, or new ones have snuck in since.

@gdevenyi gdevenyi linked a pull request Feb 18, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant