franz
February 15, 2020, 5:29pm
1
Hi,
Our macOS builds have started to fail with the error
The `brew link` step did not complete successfully
while pouring python-3.7.6_1.high_sierra.bottle.tar.gz.
Here’s a recent log showing the error:
https://travis-ci.org/appleseedhq/appleseed/jobs/649922008
Here’s the build script that leads to the error:
#!/bin/bash
#
# This source file is part of appleseed.
# Visit https://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2018-2019 David Coeurjolly, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
This file has been truncated. show original
We’ve tried moving the block
brew upgrade python@2
brew link python@2
after the block
brew upgrade boost
brew upgrade qt
brew install boost-python embree llvm@6 lz4 openimageio openvdb xerces-c zlib
but that didn’t solve the problem.
Any idea? Nothing has changed on our end.
franz
February 16, 2020, 6:46pm
2
Any idea? This is blocking us…
The error message is pretty transparent that you need to brew unlink python@2 by hand as its links are blocking the progress of brew link python. Do that after updating metadata (brew update) but before upgrading python.
Alternatively, brew unlink python before updating the metadata.
Homebrew has moved the default Python in the python formula from 2 to 3 while Travis has the old 2 preinstalled.
I had this issue as well. In my case, installing graphviz pulled in python3.
brew unlink python@2
took care of my situation.