help > RE: Errors with docker on Macbook M2
Dec 13, 2024  10:12 PM | James Swift
RE: Errors with docker on Macbook M2

Thank you for putting together the ARM Mac release! I tried to run it on my m1 macbook (running macOS Ventura 13.6.7) and I am no longer blocked by the mclmcr error, but it is still failing to run. I compiled ANTs and niftyreg from the source code on Github, and I am using the Matlab 2022a runtime. Note that I was able to generate the refaced MRI using the same input file on my PC using the docker version and an Ubuntu shell. You can see the output message below:


jamesswift@Jamess-MacBook-Pro-2 ~ % export MCRROOT=/Applications/MATLAB/MATLAB_Runtime/v912


export PATH=$PATH:/Users/jamesswift/Documents/git/ANTs:/Users/jamesswift/Documents/git/ANTs/install/bin:/Users/jamesswift/Documents/git/ANTs/install/lib:/Users/jamesswift/Documents/git/niftyreg:/Users/jamesswift/Documents/git/niftyreg/niftyreg_install/bin:/Users/jamesswift/Documents/git/niftyreg/niftyreg_install/include:/Users/jamesswift/Documents/git/niftyreg/niftyreg_install/lib:/Users/jamesswift/Documents/git/dcm2niix/build/bin


/Users/jamesswift/Documents/VERA_dependencies/mri_reface/run_mri_reface.sh /Users/jamesswift/Documents/mri_reface_test/MRI_T1.nii /Users/jamesswift/Documents/mri_reface_test/output -imType T1


-------------------------------------------------------


Running mri_reface, version 0.3.5


By: Christopher G. Schwarz schwarz.christopher@mayo.edu


Temp directory: /private/var/folders/g8/x6kv8v7x1gn4n1t041zj1xcm0000gn/T/tp250ef495_d073_433a_ba50_9eb875100d51


Target file: /Users/jamesswift/Documents/mri_reface_test/MRI_T1.nii


Output directory: /Users/jamesswift/Documents/mri_reface_test/output


Target image type: T1


Template: /Users/jamesswift/Documents/VERA_dependencies/mri_reface/mri_reface.app/Contents/Resources/mri_reface_mcr/mri_reface/images/MCALT_FaceTemplate_T1.nii


Face atlas: /Users/jamesswift/Documents/VERA_dependencies/mri_reface/mri_reface.app/Contents/Resources/mri_reface_mcr/mri_reface/images/MCALT_FaceMask.nii


 


Calculating affine parameters to template. This will take some time.


Using face-optimized affine.


Estimating warp to template using ANTS. This will take a while.


Error using ADIR_ReFace


ANTS 3 -m CC[


/Users/jamesswift/Documents/VERA_dependencies/mri_reface/mri_reface.app/Contents/Resources/mri_reface_mcr/mri_reface/images/MCALT_FaceTemplate_T1.nii


, MRI_T1_forCoreg.nii, 1, 5 ]  -o MRI_T1_to_MCALT_FaceTemplate_ -x


/Users/jamesswift/Documents/VERA_dependencies/mri_reface/mri_reface.app/Contents/Resources/mri_reface_mcr/mri_reface/images/MCALT_FaceTemplate_FaceWarpMask.nii


-a MRI_T1_to_MCALT_FaceTemplate_InitAffine.txt --continue-affine 0


-number-of-affine-iterations 0 -i 30x90x20 -r Gauss[3,0] -t SyN[.25]failed with


output: zsh:1: bad pattern: CC[


 


Do you have any suggestions for this "bad pattern" error? I haven't been able to find the file MRI_T1_to_MCALT_FaceTemplate_InitAffine.txt. I also was able to use ANTs to coregister two images with no issues outside of your project.


 


Thank you again for all of the support!

Threaded View

TitleAuthorDate
Justin Kirby Aug 5, 2024
James Swift Dec 14, 2024
Christopher Schwarz Dec 14, 2024
RE: Errors with docker on Macbook M2
James Swift Dec 13, 2024
Christopher Schwarz Dec 13, 2024
Christopher Schwarz Dec 12, 2024
Christopher Schwarz Dec 4, 2024
Christopher Schwarz Aug 6, 2024
Justin Kirby Aug 6, 2024
Christopher Schwarz Aug 8, 2024
James Swift Nov 15, 2024
Christopher Schwarz Nov 15, 2024