Problem running python apps

I've a Mac with 13.1 and I'm trying to get a basic commandline app (https://github.com/timsutton/brigadier) app going, which calls python. When I run it, I'm always prompted to install the command line tools, even though I've already downloaded the XCode 14.2 command line tools (to go with my XCode 14.2).

Running brigadier gives me a prompt "The "python" command requires the command line developer tools. Would you like to intall the tools now?" -- clicking install/agree then has it install for a bit, then ultimately fail with "Can't install the software." - so then I try to install the 680MB 14.2 dev tools command line dmg, try again, and .. same thing.

I do have brew installed:

~ % brew --version

Homebrew 3.6.16 Homebrew/homebrew-core (git revision 7d852fc1ee3; last commit 2022-12-23)

And I have python:

python

Python 3.9.6 (default, Oct 18 2022, 12:41:40) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin

and I have python3:

python3

Python 3.10.2 (v3.10.2:a58ebcc701, Jan 13 2022, 14:50:16) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin

What should I be looking at to fix this?

Replies

Is it possible that your xcode-select is not pointing at a valid directory? To see the current directory xcode-select -p To set the directory sudo xcode-select -s