Reason: tried: '/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file, not in dyld cache), '/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file)
The macOS version is Ventura 13.5.2. The AFNI I installed is in Dec. 2017 (it works)
That makes it look like "python" is not recognized at all; I guess it is only "python3" that is recognized there? So,
which python3
... probably outputs a path to something?
I think the isseu is that python is no longer recognized, and instead just python3 is. The AFNI Python programs do essentially all run in Python v3, but they also work in Python v2 still, as well, and are referenced by calls to a general "python" environment, rather than just "python3".
So, there are different ways to navigate this. I personally find the most convenient to be to use conda/miniconda to install a Python environment in which python is still recognized. No root/sudo permission is needed, and you can add all the additional Python modules/packages you want/need as well. We have instructions for this here: https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/background_install/miniconda.html
... and I would pick a Python ver=3 environment to set up from one of those recipes and install that.
Note that the python link you have having trouble with is no longer part of the mac builds. Your AFNI package is about 6 years old now. so it might be worth upgradeing.
If you are ready to upgrade, first make a copy of your current binaries (since you are reasonably happy with them), then go through some of the install steps for mac 12 Intel systems. The install process will lead you to install homebrew libraries and then compile AFNI locally.
Another choice might be to try our macos_12_x86_64 binary package. But that package would still depend on homebrew.
Just let you know that after my colleague helps me to install new python, the old AFNI works well. In this case, I'll let it be till it is too old to work.
We try not to break things retrospectively. However, without updating, you will be missing out on many new features (like the afni_proc.py QC HTML, just for one) that we have developed and the fixes that we have added in over the past few years.
--pt
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.