Skip to content

[Packaging][Java] java-jars are failing on macOS x86_64 to install Python 3.13 from homebrew #44373

@raulcd

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

The java-jars job is failing with:

==> Pouring python@3.13--3.13.0_1.ventura.bottle.tar.gz
Error: The `brew link` step did not complete successfully
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/idle3
Target /usr/local/bin/idle3
already exists. You may want to remove it:
  rm '/usr/local/bin/idle3'

To force the link and overwrite all conflicting files:
  brew link --overwrite python@3.13

To list all files that would be deleted:
  brew link --overwrite python@3.13 --dry-run

Possible conflicting files are:
/usr/local/bin/idle3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/idle3
/usr/local/bin/pydoc3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/pydoc3
/usr/local/bin/python3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3
/usr/local/bin/python3-config -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3-config
==> /usr/local/Cellar/python@3.13/3.13.0_1/bin/python3.13 -Im ensurepip
==> /usr/local/Cellar/python@3.13/3.13.0_1/bin/python3.13 -Im pip install -v --n
==> Caveats
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python@3.13/libexec/bin

See: https://docs.brew.sh/Homebrew-and-Python

This is also happening on the maintenance branch for 18.0.0

Component(s)

Java, Packaging

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions