Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI failures related to installing homebrew python #26358

Closed
mroch opened this issue Apr 9, 2018 · 4 comments
Closed

CI failures related to installing homebrew python #26358

mroch opened this issue Apr 9, 2018 · 4 comments
Labels
outdated PR was locked due to age

Comments

@mroch
Copy link
Contributor

mroch commented Apr 9, 2018

I've started getting build failures from both Travis and Circle that I think are related to #26287.

==> Pouring python@2-2.7.14_3.sierra.bottle.1.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3-2
Target /usr/local/bin/2to3-2
is a symlink belonging to python. You can unlink it:
  brew unlink python
To force the link and overwrite all conflicting files:
  brew link --overwrite python@2
To list all files that would be deleted:
  brew link --overwrite --dry-run python@2
Possible conflicting files are:
/usr/local/bin/2to3-2 -> /usr/local/Cellar/python/2.7.14/bin/2to3-2
/usr/local/bin/2to3-2.7 -> /usr/local/Cellar/python/2.7.14/bin/2to3-2.7
/usr/local/bin/idle2 -> /usr/local/Cellar/python/2.7.14/bin/idle2
...

https://travis-ci.org/facebook/flow/jobs/364227445
https://circleci.com/gh/facebook/flow/1954

seems like it's already using a homebrew python and failing while trying to overwrite with a different version.

@ilovezfs
Copy link
Contributor

Run brew upgrade python as a first step and the problem should go away.

@ilovezfs
Copy link
Contributor

brew uninstall python may also work.

@mroch
Copy link
Contributor Author

mroch commented Apr 10, 2018

@ilovezfs this isn't a bug? seems like it's trying to upgrade from python 2.7.14 to 2.7.14_3, and it's doing it automatically as a dependency of installing something else, and the instructions don't mention either of your suggestions, so it seems like there's room for improvement here

@ilovezfs
Copy link
Contributor

@mroch nope not a bug. The python formula was upgraded to be Python 3 and a newly added formula, python@2, is now Python 2. So if you have something that depends on the new python@2, but you haven't upgraded your python formula yet, then there will be a conflict between that outdated python installation and the new python@2 formula.

alavrik added a commit to alavrik/piqi that referenced this issue Apr 18, 2018
jamiesnape pushed a commit to RobotLocomotion/drake-external-examples that referenced this issue Apr 24, 2018
iriberri added a commit to iriberri/varnish-cache that referenced this issue Apr 25, 2018
fgsch pushed a commit to varnishcache/varnish-cache that referenced this issue Apr 25, 2018
soonho-tri added a commit to dreal/homebrew-dreal that referenced this issue Apr 30, 2018
weisslj added a commit to weisslj/muttjump that referenced this issue Apr 30, 2018
soonho-tri added a commit to dreal/dreal4 that referenced this issue Apr 30, 2018
@lock lock bot added the outdated PR was locked due to age label May 13, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

No branches or pull requests

2 participants