Sample Header Ad - 728x90

xattr: bad interpreter: No such file or directory

0 votes
1 answer
447 views
When I execute the xattr command, it returns the error:
`
/usr/local/bin/xattr: /usr/local/opt/python@3.11/bin/python3.11: bad interpreter: No such file or directory
` file /usr/bin/xattr returns:
`
/usr/bin/xattr: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
/usr/bin/xattr (for architecture x86_64):   Mach-O 64-bit executable x86_64
/usr/bin/xattr (for architecture arm64e):   Mach-O 64-bit executable arm64e
` which python3 returns /usr/bin/python3 and my env doesn't have any python entries. This is my .zshrc file:
`
export PATH="/usr/local/sbin:$PATH"
export PATH="/usr/local/sbin:$PATH"

# Created by pipx on 2023-11-25 17:42:38
export PATH="$PATH:/Users/rhpt/.local/bin"
` I do not have python 3.11 but I do have python 3.12 installed. Running Sonoma 14.2 on an Intel iMac. I do not understand why xattr is trying to execute a python script. How can I get Terminal to use the executable instead of trying to execute python?
Asked by RHPT (788 rep)
Jan 18, 2024, 05:44 AM
Last activity: Jan 18, 2024, 09:08 AM