Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Travis CI
Description
Recently the Travis CI build for 'Compiler: gcc Xcode: xcode7.3 C++' started failing due to the following:
. . . $ export CXX=g++ $ export CC=gcc $ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 7.3.0 (clang-703.0.31) Target: x86_64-apple-darwin15.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin before_install.1 296.52s$ brew update 66.75s$ brew upgrade python openssl 0.02s$ pip2 install --user --upgrade pip /Users/travis/.travis/job_stages: line 57: pip2: command not found The command "pip2 install --user --upgrade pip" failed and exited with 127 during . Your build has been stopped.
This appears to be due to a recent change in homebrew whereby installing 'python' installed python 2 but now installs python 3.
From a previous, working, travis job
$ brew upgrade python openssl ==> Upgrading 2 outdated packages, with result: python 2.7.14_2, openssl 1.0.2n
From the latest job that's broken:
$ brew upgrade python openssl ==> Upgrading 2 outdated packages, with result: python 3.6.4_3, openssl 1.0.2n
Looking on http://formulae.brew.sh/ we see:
🚫 Recently removed formulae python3, php72-opcache, php72-snmp, php72-tidy, php72
Attachments
Issue Links
- links to