Upgrading or installing Python latest version (3.8) does not override pip3 link #57651
Closed
4 tasks done
Labels
outdated
PR was locked due to age
brew update
and can still reproduce the problem? Yesbrew doctor
, fixed all issues and can still reproduce the problem? Yesranno formula failed, see belowbrew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?ifn/abrew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
I include links to the CircleCI output when possible, these should be accessible if logged to a CircleCI account.)
We run a number of CI tests on macOS for the datadog-agent repository. For this tests, we use
brew
to install several packages includingpython
.What happened (include command output)
Since around 11 am (CET) the tests started failing because the
pip
command could not be found (example logs available here).Before the fix, we used this script for the setup.
The relevant lines are:
We then use
pip
(which links topip3
) to install some packages (see here), which is where the CI fails.After some digging, we believe the likely culprit to be PR #54912. The logs show that some links get overwritten:
[email protected]
install overwritesbut the
pip3
link does not get overwritten, which seems to be what caused our CI to fail. The fix was to callpip
as a module, see DataDog/datadog-agent-buildimages#61Alternatively, we could have fixed it by rewriting the
pip3
link ourselves, since the output frombrew
saysWhat you expected to happen
We expected it to work correctly as it did before 11 am CET (example of successful log from yesterday)
Step-by-step reproduction instructions (by running
brew install
commands)The text was updated successfully, but these errors were encountered: