Installation error on M4 Mac

During the last step of installation, I get this weird error.

tcsh OS_notes.macos_12_ARM_b_user.tcsh
/Users/andymini/abin/init_user_dotfiles.py -shell_list bash zsh tcsh -do_updates path apsearch -dir_bin /Users/andymini/abin
xcode-select: Failed to locate 'python', requesting installation of command line developer tools.

I tried running the following check and seem to get the same error.

~/abin/afni_system_check.py -check_all
xcode-select: Failed to locate 'python', requesting installation of command line developer tools.

This is weird because I have both python and python3 installed already. Even after I install the requested command line developer tools, I get the same error.

Andys-Mac-mini:~ andymini$ which python

/usr/local/bin/python

Andys-Mac-mini:~ andymini$ which python3

/opt/homebrew/bin/python3

Thank you for the help!

That's a peculiar error, which I have not seen. Maybe /usr/local/bin/python is not for that CPU? What is the output from the following commands?

/usr/local/bin/python --version
ls -l /usr/local/bin/python
file /usr/local/bin/python
env python --version
env which python

-rick

/usr/local/bin/python --version
xcode-select: Failed to locate 'python', requesting installation of command line developer tools.

ls -l /usr/local/bin/python
lrwxr-xr-x 1 root wheel 16 Nov 16 19:37 /usr/local/bin/python -> /usr/bin/python3

file /usr/local/bin/python

/usr/local/bin/python: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]

/usr/local/bin/python (for architecture x86_64): Mach-O 64-bit executable x86_64

/usr/local/bin/python (for architecture arm64e): Mach-O 64-bit executable arm64e

env python --version

xcode-select: Failed to locate 'python', requesting installation of command line developer tools.

env which python
/usr/local/bin/python

Hi Rick,

It seems to be a mac issue. I found the issue here. prompt keeps popping up asking me… | Apple Developer Forums

I used the following and I got over that hurdle.

sudo ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python

I reran tcsh OS_notes.macos_12_ARM_b_user.tcsh and the install completed succesfully.

That is good news. Though given that you keep seeing this message:

requesting installation of command line developer tools

it suggests that there might be prompt (check the dock) that is waiting for your permission to update the CommandLineTools, which is generally good to proceed with.

  • rick

Interestingly this was the same issue with python. I kept updating and rerunning in a seemingly endless loop. However, once I got over the python issue this no longer bothered me as well.

Cool, thanks for all of the details.

  • rick