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

work around homebrew python linking issues #1267

Merged
merged 6 commits into from
Apr 16, 2024
Merged

Conversation

tsteven4
Copy link
Collaborator

These seem to be caused by a conflict between links to Library/Frameworks/Python.framework/Versions/x.y vs. brews Cellar/python@x.y. This issue has been open for over a year.

==> Pouring python@3.12--3.12.3.ventura.bottle.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
Target /usr/local/bin/2to3
already exists. You may want to remove it:
  rm '/usr/local/bin/2to3'

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

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

Possible conflicting files are:
/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/2to3
/usr/local/bin/2to3-3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/2to3-3.12
/usr/local/bin/idle3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/idle3
/usr/local/bin/idle3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/idle3.12
/usr/local/bin/pydoc3 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/pydoc3
/usr/local/bin/pydoc3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/pydoc3.12
/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/bin/python3.12 -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12
/usr/local/bin/python3.12-config -> /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12-config

This change currently rewrites the following links on macos-13

python@3.11
python@3.12
lrwxr-xr-x  1 root    wheel        67 Apr  5 [23](https://github.com/tsteven4/gpsbabel/actions/runs/8690013328/job/23828922259#step:6:24):32 2to3 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/2to3
lrwxr-xr-x  1 root    wheel        72 Apr  5 23:32 2to3-3.11 -> ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/2to3-3.11
lrwxr-xr-x  1 root    wheel        72 Apr  5 23:32 2to3-3.12 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/2to3-3.12
lrwxr-xr-x  1 root    wheel        68 Apr  5 23:32 idle3 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/idle3
lrwxr-xr-x  1 root    wheel        71 Apr  5 23:32 idle3.11 -> ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/idle3.11
lrwxr-xr-x  1 root    wheel        71 Apr  5 23:32 idle3.12 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/idle3.12
lrwxrwxr-x  1 root    admin        67 Apr  5 23:32 pip3 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/pip3
lrwxrwxr-x  1 root    admin        70 Apr  5 23:32 pip3.11 -> ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/pip3.11
lrwxrwxr-x  1 root    admin        70 Apr  5 23:32 pip3.12 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/pip3.12
lrwxr-xr-x  1 root    wheel        69 Apr  5 23:32 pydoc3 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/pydoc3
lrwxr-xr-x  1 root    wheel        72 Apr  5 23:32 pydoc3.11 -> ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/pydoc3.11
lrwxr-xr-x  1 root    wheel        72 Apr  5 23:32 pydoc3.12 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/pydoc3.12
lrwxr-xr-x  1 root    wheel        70 Apr  5 23:32 python3 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/python3
lrwxr-xr-x  1 root    wheel        77 Apr  5 23:32 python3-config -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/python3-config
lrwxr-xr-x  1 root    wheel        78 Apr  5 23:32 python3-intel64 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/python3-intel64
lrwxr-xr-x  1 root    wheel        73 Apr  5 23:32 python3.11 -> ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
lrwxr-xr-x  1 root    wheel        80 Apr  5 23:32 python3.11-config -> ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11-config
lrwxr-xr-x  1 root    wheel        81 Apr  5 23:32 python3.11-intel64 -> ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11-intel64
lrwxr-xr-x  1 root    wheel        73 Apr  5 23:32 python3.12 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12
lrwxr-xr-x  1 root    wheel        80 Apr  5 23:32 python3.12-config -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12-config
lrwxr-xr-x  1 root    wheel        81 Apr  5 23:32 python3.12-intel64 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12-intel64
lrwxr-xr-x  1 runner  admin        41 Apr  5 21:30 wheel3 -> ../Cellar/python@3.12/3.12.2_1/bin/wheel3
lrwxr-xr-x  1 runner  admin        42 Apr  5 21:37 wheel3.11 -> ../Cellar/python@3.11/3.11.9/bin/wheel3.11
lrwxr-xr-x  1 runner  admin        44 Apr  5 21:30 wheel3.12 -> ../Cellar/python@3.12/3.12.2_1/bin/wheel3.12
Unlinking /usr/local/Cellar/python@3.11/3.11.9... 5 symlinks removed.
Linking /usr/local/Cellar/python@3.11/3.11.9... 11 symlinks created.
Unlinking /usr/local/Cellar/python@3.12/3.12.2_1... 13 symlinks removed.
Linking /usr/local/Cellar/python@3.12/3.12.2_1... [25](https://github.com/tsteven4/gpsbabel/actions/runs/8690013328/job/23828922259#step:6:26) symlinks created.
python@3.11
python@3.12
lrwxr-xr-x  1 runner  admin        39 Apr 15 13:29 2to3 -> ../Cellar/python@3.12/3.12.2_1/bin/2to3
lrwxr-xr-x  1 runner  admin        42 Apr 15 13:29 2to3-3.11 -> ../Cellar/python@3.11/3.11.9/bin/2to3-3.11
lrwxr-xr-x  1 runner  admin        44 Apr 15 13:29 2to3-3.12 -> ../Cellar/python@3.12/3.12.2_1/bin/2to3-3.12
lrwxr-xr-x  1 runner  admin        40 Apr 15 13:29 idle3 -> ../Cellar/python@3.12/3.12.2_1/bin/idle3
lrwxr-xr-x  1 runner  admin        41 Apr 15 13:[29](https://github.com/tsteven4/gpsbabel/actions/runs/8690013328/job/23828922259#step:6:30) idle3.11 -> ../Cellar/python@3.11/3.11.9/bin/idle3.11
lrwxr-xr-x  1 runner  admin        43 Apr 15 13:29 idle3.12 -> ../Cellar/python@3.12/3.12.2_1/bin/idle3.12
lrwxr-xr-x  1 runner  admin        39 Apr 15 13:29 pip3 -> ../Cellar/python@3.12/3.12.2_1/bin/pip3
lrwxr-xr-x  1 runner  admin        40 Apr 15 13:29 pip3.11 -> ../Cellar/python@3.11/3.11.9/bin/pip3.11
lrwxr-xr-x  1 runner  admin        42 Apr 15 13:29 pip3.12 -> ../Cellar/python@3.12/3.12.2_1/bin/pip3.12
lrwxr-xr-x  1 runner  admin        41 Apr 15 13:29 pydoc3 -> ../Cellar/python@3.12/3.12.2_1/bin/pydoc3
lrwxr-xr-x  1 runner  admin        42 Apr 15 13:29 pydoc3.11 -> ../Cellar/python@3.11/3.11.9/bin/pydoc3.11
lrwxr-xr-x  1 runner  admin        44 Apr 15 13:29 pydoc3.12 -> ../Cellar/python@3.12/3.12.2_1/bin/pydoc3.12
lrwxr-xr-x  1 runner  admin        42 Apr 15 13:29 python3 -> ../Cellar/python@3.12/3.12.2_1/bin/python3
lrwxr-xr-x  1 runner  admin        49 Apr 15 13:29 python3-config -> ../Cellar/python@3.12/3.12.2_1/bin/python3-config
lrwxr-xr-x  1 root    wheel        78 Apr  5 23:[32](https://github.com/tsteven4/gpsbabel/actions/runs/8690013328/job/23828922259#step:6:33) python3-intel64 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/python3-intel64
lrwxr-xr-x  1 runner  admin        43 Apr 15 13:29 python3.11 -> ../Cellar/python@3.11/3.11.9/bin/python3.11
lrwxr-xr-x  1 runner  admin        50 Apr 15 13:29 python3.11-config -> ../Cellar/python@3.11/3.11.9/bin/python3.11-config
lrwxr-xr-x  1 root    wheel        81 Apr  5 23:32 python3.11-intel64 -> ../../../Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11-intel64
lrwxr-xr-x  1 runner  admin        45 Apr 15 13:29 python3.12 -> ../Cellar/python@3.12/3.12.2_1/bin/python3.12
lrwxr-xr-x  1 runner  admin        52 Apr 15 13:29 python3.12-config -> ../Cellar/python@3.12/3.12.2_1/bin/python3.12-config
lrwxr-xr-x  1 root    wheel        81 Apr  5 23:32 python3.12-intel64 -> ../../../Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12-intel64
lrwxr-xr-x  1 runner  admin        41 Apr 15 13:29 wheel3 -> ../Cellar/python@3.12/3.12.2_1/bin/wheel3
lrwxr-xr-x  1 runner  admin        42 Apr 15 13:29 wheel3.11 -> ../Cellar/python@3.11/3.11.9/bin/wheel3.11
lrwxr-xr-x  1 runner  admin        44 Apr 15 13:29 wheel3.12 -> ../Cellar/python@3.12/3.12.2_1/bin/wheel3.12

@robertlipe
Copy link
Collaborator

robertlipe commented Apr 15, 2024 via email

@tsteven4 tsteven4 merged commit 9cc7b93 into GPSBabel:master Apr 16, 2024
19 checks passed
@tsteven4 tsteven4 deleted the dbg branch April 16, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants