When running ./scripts/setup to run the BNA locally, the setup process fails with the error:
==> default: Running provisioner: ansible_local...
default: Installing Ansible...
default: Installing pip... (for Ansible installation)
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
curl https://bootstrap.pypa.io/get-pip.py | sudo python
Stdout from the command:
Stderr from the command:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1883k 100 1883k 0 0 2685k 0 --:--:-- --:--:-- --:--:-- 2686k
Traceback (most recent call last):
File "<stdin>", line 24226, in <module>
File "<stdin>", line 199, in main
File "<stdin>", line 82, in bootstrap
File "/tmp/tmpHpQ6OO/pip.zip/pip/_internal/cli/main.py", line 60
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax
As noted on PR #828, there's a new line in deployment/ansible/group_vars/all.example that needs to be copied over to deployment/ansible/group_vars/all to make the fix work (see diff).
When running ./scripts/setup to run the BNA locally, the setup process fails with the error:
The problem started Saturday after a new version of pip was released. I tried troubleshooting as advised in https://github.com/pypa/get-pip/issues/83 by adding
to the Vagrantfile. This resolved the first failure but led to a second failure with the same error output: