macOS fails to install dependencies: Could not symlink lib/libtcl8.6.dylib #128069
Copy link
Copy link
Closed
Labels
OS-macinfraCI, GitHub Actions, buildbots, Dependabot, etc.CI, GitHub Actions, buildbots, Dependabot, etc.
Description
The macOS CI of GitHub Action failed in the Install Homebrew dependencies step with:
Linking /usr/local/Cellar/tcl-tk@8/8.6.16...
Error: Could not symlink lib/libtcl8.6.dylib
Target /usr/local/lib/libtcl8.6.dylib
is a symlink belonging to tcl-tk@8. You can unlink it:
brew unlink tcl-tk@8
To force the link and overwrite all conflicting files:
brew link --overwrite tcl-tk@8
To list all files that would be deleted:
brew link --overwrite tcl-tk@8 --dry-run
Linked PRs
- gh-128069: Do not manually brew link Tcl/Tk to fix macOS CI failure #128082
- gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict with GitHub image's version #128090
- [3.13] gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict with GitHub image's version (GH-128090) #128096
- [3.12] gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict with GitHub image's version (GH-128090) #128125
- [3.11] gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict with GitHub image's version (GH-128090) #129172
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
OS-macinfraCI, GitHub Actions, buildbots, Dependabot, etc.CI, GitHub Actions, buildbots, Dependabot, etc.
Activity
vstinner commentedon Dec 18, 2024
I saw the failure on macos-13 image version 20241216.479 (2024-12-16):
vstinner commentedon Dec 18, 2024
The job pass with macos-13 image version 20241211.456 (2024-12-11).
hugovk commentedon Dec 18, 2024
Yes:
Pass: https://github.com/python/cpython/actions/runs/12389079636/job/34581414776
Fail: https://github.com/python/cpython/actions/runs/12389598892/job/34582962458
hugovk commentedon Dec 18, 2024
The Tcl/Tk version changed from 8.6.15 to 8.6.16 in the GH image.
#127365 added the Homebrew
tcl-tk@pin to prevent Homebrew installing version 9.https://formulae.brew.sh/formula/tcl-tk@8 says it's also on 8.6.16.
Perhaps we should try the
--overwrite?hugovk commentedon Dec 18, 2024
That installs and passes:
hugovk@439a329
https://github.com/hugovk/cpython/actions/runs/12395563219/job/34601604141
pythongh-128069: Do not manually brew link Tcl/Tk to fix macOS CI fai…
ZeroIntensity commentedon Dec 19, 2024
It might be worth temporarily disabling the job while this gets figured out. Many PRs are stuck because of this.
vstinner commentedon Dec 19, 2024
I created a PR for this commit: #128090.
gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict with Gi…
pythongh-128069: brew link --overwrite tcl-tk@8 to prevent conflict w…
[3.13] gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict …
pythongh-128069: brew link --overwrite tcl-tk@8 to prevent conflict w…
[3.12] gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict …
pythongh-128069: brew link --overwrite tcl-tk@8 to prevent conflict w…
pythongh-128069: brew link --overwrite tcl-tk@8 to prevent conflict w…
pythongh-128069: brew link --overwrite tcl-tk@8 to prevent conflict w…
[3.11] gh-128069: brew link --overwrite tcl-tk@8 to prevent conflict …