-
Notifications
You must be signed in to change notification settings - Fork 2
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
"mat2file.c not compiled" when running SPM12 realign and reslice in an Octave-kernel Jupyter notebook #1
Comments
Hi @jsheunis ! This is due to a bug in Octave that was fixed two years ago: https://savannah.gnu.org/bugs/?53856 So best would be to use a more recent version of Octave (5.2.0 instead of old 4.2.2) but there might be some restrictions about what is currently available from Binder - or use a Dockerfile but it seems to be recommended against. Otherwise, a temporary fix could be to remove all |
Thanks for the quick and useful reply! I will investigate these and update here with what works. |
Update: Option 1 - use a recent version of OctaveI looked into this and didn't get it to work. I found that a related issue on the Binder examples repo. I commented on that issue detailing what I tried, basically putting the version number in the Option 2 - using a DockerfileI haven't tried this yet. Will look at it as a last resort. Option 3 - deleting all
|
Thank you @jsheunis - I would also want to use Binder for some SPM tutorials at some point so this is particularly useful. Option 1 Option 2 Option 3 |
Thanks! Deleting the extra My whole notebook now runs without errors. I'm now working on ways to view useful plot/figure outputs inline. At the moment, as suspected, not much of the output displays inline. Also, thanks for filling in the blanks about the Ubuntu and Octave versions and compatibility / availability. |
Great! There are other If you find more info about how to improve the display of inline outputs and create widgets, let me know. For now I am going to close this issue but keep me in the loop of what you come up with! |
@gllmflndn I just published a blog post with a step-by-step guide on how to set up a repo to do Reproducible fMRI analysis with SPM12, Octave, Jupyter and Binder. Thanks for your help! |
Thanks @jsheunis, nice one! I will add a link to your tutorial in the spm-notebooks repository. To give credit where credit's due, all I know about Binder comes from @KirstieJane and colleagues after attending a "Boost your research reproducibility with Binder" workshop at the Turing Institute last year. |
FYI @gllmflndn and @jsheunis Just saw that you solved this already but if you have any idea on a clean way to solve this issue when running locally. |
I think the only clean way is to use the latest stable release of Octave, as the bug encountered here has been fixed two and a half years ago. As you noticed, a workaround for older Octave versions is to delete all but |
Noted: will check which octave version ships with my Ubuntu version. I know I can use a more recent version of Octave with Snap but the default one on my system is still 4.2. |
Hi @gllmflndn
I'm trying out SPM12 with Octave on Binder (see repository here). I've set up a Jupyter notebook environment with an Octave kernel basically like you have done here (thanks!).
Now I've started testing some SPM12 processing steps and I'm getting an error when trying to run realign and reslice with a batch script:
I've browsed some mailing list questions and it looks like this was previously solved by reinstalling SPM12, although I suspect most of these issues were on standalone desktops.
I'm guessing this line in the
postBuild
file is supposed to install everything correctly?Do you have an idea if this issue could be Binder-related, or perhaps a suggestion of what else I could try?
Best, Stephan
The text was updated successfully, but these errors were encountered: