Closed balaji-dutt closed 2 years ago
Python has apparently been removed in the latest macOS version. env: python: No such file or directory
is literally saying that python can't be found.
Would recommend installing python via homebrew and ensuring it's linked on your path as versionless (i.e. python not python@3.9).
You'll still hit issues with the script being incompatible with python 3.9 but that can be fixed by amending line 390 to remove the encoding specification.
Python has apparently been removed in the latest macOS version.
env: python: No such file or directory
is literally saying that python can't be found.
D-oh! That'll teach me to not read error messages properly. python3
is available on $PATH
as a versionless executable so I just modified Line 1 to reference python3
You'll still hit issues with the script being incompatible with python 3.9 but that can be fixed by amending line 390 to remove the encoding specification.
Thanks for pointing out that gotcha as well @cooperaj. Once I made the change to the env
line and the edit on Line 390, things started working again.
Hi,
I'm aware that there is an open issue (#21) but given it's a couple of years old I'm not sure the workarounds mentioned in there are still correct. In addition, I've started seeing this error quite recently after upgrading to macOS Monterey so I'm not sure if it's some type of broken dependency.
I'm seeing the following error when I try to run any ansible command with the Inventory script:
Terraform state is stored remotely, but I'm able to retrieve Terraform state in the same directory without any error:
Is there some way to debug this issue further? I've tried adding the
ANSIBLE_TF_DIR
variable when running ansible commands but that doesn't seem to change anything.