GPSBabel / gpsbabel

GPSBabel: convert, manipulate, and transfer data from GPS programs or GPS receivers. Open Source and supported on MacOS, Windows, Linux, and more. Pointy clicky GUI or a command line version...
https://www.gpsbabel.org
GNU General Public License v2.0
452 stars 125 forks source link

work around homebrew python linking issues #1267

Closed tsteven4 closed 3 months ago

tsteven4 commented 3 months ago

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 commented 3 months ago

Thanx. I saw the failure, thought it seemed familiar, and assumed it was a transient.

I appreciate you taking it to the mat.

On Mon, Apr 15, 2024, 10:35 AM tsteven4 @.***> wrote:

These seem to be caused by a conflict between links to Library/Frameworks/Python.framework/Versions/x.y vs. brews @.*** This issue https://github.com/actions/setup-python/issues/577 has been open for over a year.

==> Pouring @.*** 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 @.***

To list all files that would be deleted: brew link --overwrite @.*** --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

@. @. lrwxr-xr-x 1 root wheel 67 Apr 5 23: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 -> ..@./3.12.2_1/bin/wheel3 lrwxr-xr-x 1 runner admin 42 Apr 5 21:37 wheel3.11 -> ..@./3.11.9/bin/wheel3.11 lrwxr-xr-x 1 runner admin 44 Apr 5 21:30 wheel3.12 -> ..@./3.12.2_1/bin/wheel3.12 Unlinking @./3.11.9... 5 symlinks removed. Linking @./3.11.9... 11 symlinks created. Unlinking @./3.12.2_1... 13 symlinks removed. Linking @./3.12.2_1... 25 symlinks created. @. @. lrwxr-xr-x 1 runner admin 39 Apr 15 13:29 2to3 -> ..@./3.12.2_1/bin/2to3 lrwxr-xr-x 1 runner admin 42 Apr 15 13:29 2to3-3.11 -> ..@./3.11.9/bin/2to3-3.11 lrwxr-xr-x 1 runner admin 44 Apr 15 13:29 2to3-3.12 -> ..@./3.12.2_1/bin/2to3-3.12 lrwxr-xr-x 1 runner admin 40 Apr 15 13:29 idle3 -> ..@./3.12.2_1/bin/idle3 lrwxr-xr-x 1 runner admin 41 Apr 15 13:29 idle3.11 -> ..@./3.11.9/bin/idle3.11 lrwxr-xr-x 1 runner admin 43 Apr 15 13:29 idle3.12 -> ..@./3.12.2_1/bin/idle3.12 lrwxr-xr-x 1 runner admin 39 Apr 15 13:29 pip3 -> ..@./3.12.2_1/bin/pip3 lrwxr-xr-x 1 runner admin 40 Apr 15 13:29 pip3.11 -> ..@./3.11.9/bin/pip3.11 lrwxr-xr-x 1 runner admin 42 Apr 15 13:29 pip3.12 -> ..@./3.12.2_1/bin/pip3.12 lrwxr-xr-x 1 runner admin 41 Apr 15 13:29 pydoc3 -> ..@./3.12.2_1/bin/pydoc3 lrwxr-xr-x 1 runner admin 42 Apr 15 13:29 pydoc3.11 -> ..@./3.11.9/bin/pydoc3.11 lrwxr-xr-x 1 runner admin 44 Apr 15 13:29 pydoc3.12 -> ..@./3.12.2_1/bin/pydoc3.12 lrwxr-xr-x 1 runner admin 42 Apr 15 13:29 python3 -> ..@./3.12.2_1/bin/python3 lrwxr-xr-x 1 runner admin 49 Apr 15 13:29 python3-config -> ..@./3.12.2_1/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 runner admin 43 Apr 15 13:29 python3.11 -> ..@./3.11.9/bin/python3.11 lrwxr-xr-x 1 runner admin 50 Apr 15 13:29 python3.11-config -> ..@./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 -> ..@./3.12.2_1/bin/python3.12 lrwxr-xr-x 1 runner admin 52 Apr 15 13:29 python3.12-config -> ..@./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 -> ..@./3.12.2_1/bin/wheel3 lrwxr-xr-x 1 runner admin 42 Apr 15 13:29 wheel3.11 -> ..@./3.11.9/bin/wheel3.11 lrwxr-xr-x 1 runner admin 44 Apr 15 13:29 wheel3.12 -> ..@./3.12.2_1/bin/wheel3.12


You can view, comment on, or merge this pull request online at:

https://github.com/GPSBabel/gpsbabel/pull/1267 Commit Summary

File Changes

(1 file https://github.com/GPSBabel/gpsbabel/pull/1267/files)

Patch Links:

— Reply to this email directly, view it on GitHub https://github.com/GPSBabel/gpsbabel/pull/1267, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCSD34PONFSYOHZYSJUEF3Y5PXVXAVCNFSM6AAAAABGHTK4ECVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2DGOJZG4ZTENQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>